LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

fx

interactive JSON viewer and processor

TLDR

Interactive JSON viewer
$ cat [data.json] | fx
copy
Apply transformation
$ cat [data.json] | fx '.items'
copy
Filter with expression
$ cat [data.json] | fx '.[] | select(.active)'
copy
Select multiple fields
$ cat [data.json] | fx '.name' '.age'
copy
Format output
$ cat [data.json] | fx .
copy

SYNOPSIS

fx [options] [expressions...]

DESCRIPTION

fx is a command-line JSON processing tool written in Go with interactive browsing. It provides jq-like filtering with its own expression syntax for flexible data manipulation.In interactive mode, fx provides a navigable tree view of JSON data. Expression mode allows piping data through transformations. Multiple expressions chain together.fx handles streaming JSON, object manipulation, and data extraction.

PARAMETERS

EXPRESSIONS

Dot notation paths or fx expression syntax.
.
Pretty print JSON.
-r, --raw
Output raw strings.
-s, --slurp
Read multiple JSON objects.
--help
Display help information.

INSTALL

sudo pacman -S fx
copy
sudo apk add fx
copy
sudo zypper install fx
copy
brew install fx
copy
nix profile install nixpkgs#fx
copy

CAVEATS

Large files may be slow in interactive mode. JavaScript expressions have learning curve. Different from jq syntax.

HISTORY

fx was created as a modern JSON tool combining interactive exploration with JavaScript-based processing, providing an alternative to jq for developers familiar with JavaScript.

SEE ALSO

jq(1), gron(1), jless(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid