JSON.sh: a JSON parser written in bash
github.com
github.com
$ echo '{"json":"obj"}' | python -mjson.tool
{
"json": "obj"
}
http://docs.python.org/library/json.htmlhttp://stackoverflow.com/questions/352098/how-to-pretty-prin...
Using mongo, node.js for real work, I find this a really practical environment, and I often write little 'perl' {java}scripts for text/data wrangling.
I wrote a little utility that has a jsonpath-like syntax to descend down into json docs in mongo from the command line, use that a lot.
I cannot really say how much I needed this. Just yesterday I was writing a bash script for one of my side-projects and I wrote a ruby script just to parse JSON and called that ruby script within bash.
Wouldn't want to use this for any serious work without any clear license, though...
"Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
"The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software."
yeah, I think there are plenty of reasonable uses for bash, like before any thing else is installed... aka, devops.