Run a Ruby snippet for a JSON value and each nested value.
gem install dorian-json-deep-eachAlso included in the aggregate gem:
gem install dorianjson-deep-each [file ...] "ruby code"Run json-deep-each -h for generated option details and json-deep-each -v for the installed version.
- Visits the root first, then arrays and hashes recursively.
itis deep-structified before the snippet runs.
echo '[1,2,3]' | json-deep-each "p it"