Skip to content

dorianmariecom/dorian-json-deep-pluck

Repository files navigation

dorian-json-deep-pluck

Recursively pluck matching paths from JSON.

Install

gem install dorian-json-deep-pluck

Also included in the aggregate gem:

gem install dorian

Usage

json-deep-pluck [options] key [key ...] [file ...]

Run json-deep-pluck -h for generated option details and json-deep-pluck -v for the installed version.

Notes

  • Keys can be hash keys or array indexes. Use --json for pretty JSON output or --ruby for Ruby inspection output.

Examples

Find nested first elements

echo '[[1],[2]]' | json-deep-pluck 0

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors