Skip to content
a pipeable JSON parser written in Bash
Shell
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
test
.gitignore
all-tests.sh
errlog
outlog
package.json
parse.sh
readme.markdown

readme.markdown

JSON.sh

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

this is what the interface in gonna be:

cat package.json | JSONsh '.dependencies'

#key  value
foo   ~1

or a more complex example:

curl registry.npmjs.org/module : JSONsh '.versions[*]'

#key  value
0.0.0 {...}

curl registry.npmjs.org/assertions | ./bin/json_parse | egrep '["versions","[^"]*"]'

Something went wrong with that request. Please try again.