JSON-Grep
JSON-Grep copied to clipboard
Support filtering parsed objects
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 inspect the first argument and only parse it if it's a string, but I'm generally not a fan of those kind of APIs. Factoring it out to a smaller method is probably better.
Before I start I'd like to hear the opinions on this.