News for hackers. Stuff that matters.
Re:Jshon: A command line program to parse, read and create JSON by VMG on Friday February 18, 2011 @06:26AM (#2235054)
Great tool, was thinking about writing something like that myself. I especially wanted a tool that would print the value of a specific key to STDOUT with a syntax like

    echo "{ 'a': {'b': {'c": 0 } } }" | json-tool "a.b.c"   # echos 0
Maybe your tool does that but I missed it
Re:Jshon: A command line program to parse, read and create JSON by keenerd on Friday February 18, 2011 @08:28AM (#2235296)
Glad you like it. I'll be adding a path-like syntax next. This was just a little one-day hackup to learn getopts.

You can do similar with -e a -e b -e c. Or just make your own wrapper with

jshon $(echo ".a.b.c" | sed 's/./ -e/g')

Re:Jshon: A command line program to parse, read and create JSON by keenerd on Friday February 18, 2011 @11:07AM (#2235937)
jshon $(sed 's/\./ -e/g' <<< ".a.b.c")