FX: An interactive alternative to jq to process JSON

FX: An interactive alternative to jq to process JSON

fx logo

fx example

* Function eXecution

Build Status
Npm Version
Brew Version

Command-line JSON processing tool


  • Easy to use
  • Standalone binary
  • Interactive mode 🎉
  • Streaming support 🌊


Or via Homebrew

Or download standalone binary from releases


Start interactive mode without passing any arguments.

Or by passing filename as first argument.

Pass a few JSON files.

cat foo.json bar.json baz.json | fx .message

Use full power of JavaScript.


Access all lodash (or ramda, etc) methods by using .fxrc file.

$ curl ... | fx '_.groupBy("commit.committer.name")' '_.mapValues(_.size)'

Update JSON using spread operator.

$ echo '{"count": 0}' | fx '{...this, count: 1}'
  "count": 1

Extract values from maps.

$ fx commits.json | fx .[].author.name

Print formatted JSON to stdout.

Pipe JSON logs stream into fx.

$ kubectl logs ... -f | fx .message

And try this:


See full documentation.





Join the pack! Join 8000+ others registered users, and get chat, make groups, post updates and make friends around the world!
Read More

Related Articles

x86 Is an Octal Machine

# source:http://reocities.com/SiliconValley/heights/7052/opcode.txt From: mark@omnifest.uwm.edu (Mark Hopkins) Newsgroups: alt.lang.asm Subject: A Summary of the 80486 Opcodes and Instructions (1) The 80×86 is an Octal Machine This is a follow-up and revision of an article posted in alt.lang.asm on 7-5-92 concerning the 80×86 instruction encoding. The only proper way to understand 80×86 coding is to realize that…

Bash Pitfalls

This page is a compilation of common mistakes made by bash users. Each example is flawed in some way. 1. for f in $(ls *.mp3) One of the most common mistakes BASH programmers make is to write a loop like this: for f in $(ls *.mp3); do # Wrong! some command $f # Wrong! done…

What’s recent in Emacs 28.1?

By Mickey Petersen It’s that time again: there’s a new major version of Emacs and, with it, a treasure trove of new features and changes.Notable features include the formal inclusion of native compilation, a technique that will greatly speed up your Emacs experience.A critical issue surrounding the use of ligatures also fixed; without it, you…

Windows 11 Guide

A guide on setting up your Windows 11 Desktop with all the essential Applications, Tools, and Games to make your experience with Windows 11 great! Note: You can easily convert this markdown file to a PDF in VSCode using this handy extension Markdown PDF. Getting Started Windows 11 Desktop Bypass Windows 11’s TPM, CPU and…