json-path-to-jq-and-unflatten

Installation
SKILL.md

Find JSON Paths, Build jq Filters, Keep Big Numbers Exact, and Unflatten

Use Gronify to discover exact paths when you do not yet know a document's schema, translate those paths directly into jq filters or JSONPath, verify 64-bit integers verbatim, or rebuild filtered lines back into JSON with unflatten.

Prerequisites

Check command -v gronify (or run npx gronify ...; ask before installing globally with npm install -g gronify or brew install 1solomonwakhungu/tap/gronify). Always pass --no-color (in PTY terminals, omitting --no-color forces unflatten to buffer the whole document in memory) and cap searches on unknown files with -m. On 1.4.0 and older, avoid passing an empty search term '' (it reads stdin instead); prefix hyphenated terms with --.

Pin searches to keys vs. exact values

Plain gronify search matches case-insensitively anywhere on the path = value line. Use regex anchors to isolate keys or values:

# Match only a key named "email" (not "email_notifications" or values containing "email")
gronify --no-color search account.json -m 20 --regex '\.email = '
# Stronger guard if string values themselves may contain ".email = "
gronify --no-color search account.json -m 20 --regex '^[^=]*\.email = '
Installs
2
First Seen
1 day ago