Interactive JSON Viewer
fx provides an interactive command-line JSON viewer that allows users to explore and manipulate JSON data intuitively.
Simple and Lightweight
The tool is compact and easy to use, making it an excellent choice for users who need quick data examination without complex setup.
Scriptable
Users can use JavaScript expressions to filter and transform JSON data, offering flexibility in data manipulation.
Integration
fx can be easily integrated into shell scripts and other command-line tools due to its standard input/output operations.
Cross-Platform Compatibility
Being a Node.js-based tool, fx is cross-platform and can run on multiple operating systems supporting Node.js.
Coincidentally, yesterday I decided I needed a JSON TUI and landed on fx (https://github.com/antonmedv/fx), which seems to have come out of the Wave terminal project and looks quite similar to jless. Also uses vim keybindings. - Source: Hacker News / 7 months ago
This is great, I could see myself using it daily. The only hindrance I've found so far is navigating large responses. Would be cool to have some way to collapse chunks of JSON (a la https://github.com/antonmedv/fx), or even just more vim key navigation, like G/gg, %, {/}, and search. - Source: Hacker News / 10 months ago
Neat! You mentioned not getting the hang of jq, have you played with fx? Source: almost 2 years ago
This looks like something I'd use often. Thanks for creating it! For anyone who's not familiar, Anton is also behind the highly useful fx[0] for wrangling JSON data in the terminal. [0] https://github.com/antonmedv/fx. - Source: Hacker News / over 2 years ago
I've been so fed up with jq's annoying syntax that I began thinking about developing something that can perform json operations in familiar syntax such as javascript but I ran into fx (https://github.com/antonmedv/fx) and it's been pretty great actually. Source: over 2 years ago
Hi I’m the author of https://github.com/antonmedv/fx (terminal JSON viewer) Recently I decided to rewrite entire program to Go. And usually on second rewrite things end-up better. Main reason for this, I believe is clear end result, the target. I think new ersion of fx is much more superior:) I recommend you, to check it out ;) Would like to have some feedback and ideas for improvement. One of new cool features... - Source: Hacker News / almost 3 years ago
I really like fx (https://github.com/antonmedv/fx) for interactive stuff. It does exactly what I think you want. You can expand individual fields and explore the schema. However, I really do like jq for queries and scripting, so I keep both around. - Source: Hacker News / about 3 years ago
In the theme of jq alternatives, there is fx[1] which has an interactive view and supports querying JSON in Javascript, Python and Ruby. [1] https://github.com/antonmedv/fx. - Source: Hacker News / about 3 years ago
I guess it kinda depends on lots of things… I guess many people use Graylog, Splunk or similar web-based systems (which can be self-hosted if you like). Not sure if there are any readymade applications for using locally on your Mac. Maybe you can hack something together with jq + Bash + awk etc? These tools might also be useful: https://kantord.github.io/emuto/ https://github.com/antonmedv/fx Best of luck! - Source: Hacker News / about 3 years ago
In addition to jq (already mentioned) here are some other useful CLI tools for dealing with JSON data. Descriptions are directly from GitHub. Note: dsq also has a companion GUI app called DataStation[0] if you're looking for that. fx: Command-line JSON processing tool - https://github.com/antonmedv/fx dasel: JSON, YAML, TOML, XML, and CSV query and modification tool - https://github.com/TomWright/dasel dsq: CLI... - Source: Hacker News / about 3 years ago
Also worth mentioning: https://github.com/antonmedv/fx. - Source: Hacker News / about 3 years ago
There's definitely more features I want to add: Windows support, some way to filter data with jq filters (a la fx), yanking objects to the clipboard, being able to hide keys entirely, streaming data in, so you can peek at the start of gigantic file, maybe a way to extract a schema from a file (something like this), plenty of low-hanging fruit for performance. Support for different hierarchical data formats (YAML,... Source: about 3 years ago
FX: An interactive alternative to jq to process JSON\ (40 comments). Source: over 3 years ago
Stepping just a little beyond regular ‘loop and filter’ is already difficult without consulting the manual each time — being exacerbated by the impossibility of finding those things in the manual without skimming through most of it. Making an ‘if’ for variations in the input structure is easily a twenty-minute job. Outside of the basic features, Jq's syntax is increasingly arcane and unintuitive. I actually... - Source: Hacker News / over 3 years ago
Https://github.com/antonmedv/fx which uses JavaScript as the query language. The author of the tool has also written a guide and a screencast - https://medium.com/@antonmedv/discover-how-to-use-fx-effectively-668845d2a4ea - https://youtu.be/ktfeRxKog98. - Source: Hacker News / over 3 years ago
Can someone comment on how does `jq` compare with `fx`? - https://github.com/antonmedv/fx. - Source: Hacker News / over 3 years ago
Js anonymous functions are valid inputs to the tool. When the transformation turns to be more complex than exptected I can just copy and paste what I've made so far into a nodejs script. You can also configure a .fxrc file to automatically import npm packages that you might find useful, shortcuts, or your personal functions. [1] https://github.com/antonmedv/fx. - Source: Hacker News / almost 4 years ago
Depending on how confident you are with javascript, you might want to take a look at https://github.com/antonmedv/fx. Source: almost 4 years ago
For the lazy such as myself; https://github.com/antonmedv/fx. Source: about 4 years ago
Do you know an article comparing fx to other products?
Suggest a link to a post with product alternatives.
This is an informative page about fx. You can review and discuss the product here. The primary details have not been verified within the last quarter, and they might be outdated. If you think we are missing something, please use the means on this page to comment or suggest changes. All reviews and comments are highly encouranged and appreciated as they help everyone in the community to make an informed choice. Please always be kind and objective when evaluating a product and sharing your opinion.