Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: 5ff48e9de4
Fetching contributors…

Cannot retrieve contributors at this time

41 lines (30 sloc) 1.032 kB

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"
["bin"] {"json_parse":"./bin/json_parse"}
["dependencies"]    {}
#  ... etc

a more complex example:

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


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
Jump to Line
Something went wrong with that request. Please try again.