Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

a pipeable JSON parser written in Bash

tree: cfcfebcadf

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 test
Octocat-spinner-32 .gitignore Tokenizer changes:
Octocat-spinner-32 LICENSE.APACHE2 Added Apache License v2 and capitalized README
Octocat-spinner-32 LICENSE.MIT Added Apache License v2 and capitalized README
Octocat-spinner-32 Remove some bashisms from tests
Octocat-spinner-32 package.json

yo, so it's a json parser written in bash

pipe json to it, and it traverses the json objects and prints out the path to the current object (as a JSON array) and then the object, without whitespace.

$ json_parse < package.json
["name"]    ""
["version"] "0.0.0"
["description"] ""
["homepage"]    ""
["repository","type"]   "git"
["repository","url"]    ""
["repository"]  {"type":"git","url":""}
["bin","json_parse"]    "./"
["bin"] {"json_parse":"./"}
["dependencies"]    {}
#  ... etc

a more complex example:

curl | ./ | egrep '\["versions","[^"]*"\]'
... try it and see



Brief output. Exclude empty fields and duplicate data. This will improve performance for larger queries.


If you have any examples with, streaming twitter, github, or whatever! please issue a pull request and i will include them.


This software is available under the following licenses:

  • MIT
  • Apache 2
Something went wrong with that request. Please try again.