JSON-Grep
JSON-Grep copied to clipboard
Command line tool and API for parsing JSON documents
It would be nice for expressions to support the =~ operator
I've tried a lot, but cannot figure out how to "show the tags field for those matching state=running". If anyone has any suggestions, I would love to hear them. I...
This may exceed the purview of this utility (after all it's jgrep, not ygrep), but it would be handy if you could parse both YAML and JSON files. If it's...
When piping in json files with a command such as: cat data.json | jgrep -n -s id I sometimes get errors such as: 100017401 10005352 Error - "\xE2" on US-ASCII...
See comments starting with '==>': In-document comparison If a document contains an array, the '[' and ']' symbols can be used to define a comparison where statements are checked for...
Today `JGrep.jgrep` parses the input, but in https://github.com/voxpupuli/facterdb/pull/282 I want to further refine results. As a start I opened https://github.com/ploubser/JSON-Grep/pull/53 so I could understand the API. One option is to...
By using yardoc tags the API can be documented. Understanding the parameters & return types with their data types makes it easier to reason about.