Run one Ruby snippet against the whole JSON value.
gem install dorian-json-allAlso included in the aggregate gem:
gem install dorianjson-all [file ...] "ruby code"Run json-all -h for generated option details and json-all -v for the installed version.
- Sets
itto the parsed JSON value converted to deep structs.
echo '[1,2,3]' | json-all "puts it[1]"Output:
2