Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 371 Bytes

README.md

File metadata and controls

26 lines (21 loc) · 371 Bytes

jsonparse

A JSON parser implementation mostly written in pure bash

Usage

cat sample.json
# {
#   "foo": 42,
#   "bar": [
#     {
#       "baz": "Hello World"
#     },
#     false
#   ]
# }

cat sample.json | ./jsonparse foo
# 42

cat sample.json | ./jsonparse bar
# [{"baz":"Hello World"},false]

./jsonparse 'bar[0].baz' < sample.json
# Hello World