Hacker News new | ask | show | jobs
by gryn 1621 days ago
Cat xxx.json | fx 'whatever' | fx

Is how I usually do so, if you don't want the interactive mode drop the last pipe

1 comments

Not sure I understand. I mean using the interactive mode to figure out the right query ("[].mumble.whatever...") and then being able to save the text of the query that you figured out by pointing and clicking. Like a graphical SQL query builder allows you to do.
You can do this with `jid -q`: https://github.com/simeji/jid

(Its interactivity is keyboard- rather than mouse-based.)

Oh, that's great...outputs a jq-compatible query. Thanks!