Show HN: Json parser in 20 lines of bash
github.com
github.com
it was a challenge to write, bash has nothing that looks like a recursive data structure. it's not really meant to be useful ^^
$ ./j 'obj->"foo"' 'arr->1' 'obj->"baz"' <<< '{"foo":["bar",{"baz":"bat"}]}'
"bat"
[1] https://github.com/izabera/j/commit/24e0c49e38c63c4f96f01725...