Run a Ruby snippet for each top-level JSON item.
gem install dorian-json-eachAlso included in the aggregate gem:
gem install dorianjson-each [file ...] "ruby code"Run json-each -h for generated option details and json-each -v for the installed version.
- Arrays yield each element. Hashes yield key/value pairs. Values are converted to deep structs.
json-each package.json "puts it.first"