LinuxCommandLibrary

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.

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)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community