JSON-Grep icon indicating copy to clipboard operation
JSON-Grep copied to clipboard

Support filtering parsed objects

Open ekohl opened this issue 2 years ago • 0 comments

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.

ekohl avatar Jul 21 '23 10:07 ekohl