Recursively pluck matching paths from JSON.
gem install dorian-json-deep-pluckAlso included in the aggregate gem:
gem install dorianjson-deep-pluck [options] key [key ...] [file ...]Run json-deep-pluck -h for generated option details and json-deep-pluck -v for the installed version.
- Keys can be hash keys or array indexes. Use
--jsonfor pretty JSON output or--rubyfor Ruby inspection output.
echo '[[1],[2]]' | json-deep-pluck 0