# fx

> Terminal-based JSON processor and viewer for querying, filtering, and manipulating JSON data interactively.

Stars: 20.7k · Language: Go · License: MIT · Categories: Data

- Repository: https://github.com/antonmedv/fx
- Website: https://fx.wtf
- Page: https://www.trmn.sh/tools/fx

## Overview

fx is a command-line JSON processor that provides interactive viewing and manipulation capabilities for JSON data. The tool allows users to query, filter, and transform JSON documents using JavaScript expressions and built-in functions directly from the terminal.

The tool supports both streaming and interactive modes, enabling users to pipe JSON data through fx for processing or launch an interactive interface for exploring complex JSON structures. It includes syntax highlighting and formatting features that make working with large JSON datasets more manageable in terminal environments.

Developers working with APIs, configuration files, or data analysis workflows would find fx particularly useful for quick JSON inspection and transformation tasks without needing to switch to graphical applications or write separate scripts.

![fx preview](https://media.trmn.sh/cached/cd0b7b5ed03f5c2c1cdb2ac196c91fda313267b9b187e763faf0a30687a6fa3b.gif)

## Alternatives

- [yq](https://www.trmn.sh/tools/yq.md): Command-line YAML, JSON, XML, and CSV processor with jq-like syntax for querying and transforming structured data (Go, 16.2k stars)
- [gron](https://www.trmn.sh/tools/gron.md): Transforms JSON into discrete assignments to make it greppable and enable exploration of complex JSON structures (Go, 14.5k stars)
- [usql](https://www.trmn.sh/tools/usql.md): Universal command-line SQL client with PostgreSQL psql-inspired interface for multiple databases (Go, 10.2k stars)
- [miller](https://www.trmn.sh/tools/miller.md): Command-line data processing tool for CSV, TSV, JSON, and JSON Lines with field-based operations (Go, 10.1k stars)
- [pup](https://www.trmn.sh/tools/pup.md): Command line HTML processing tool using CSS selectors to filter and extract data from HTML documents (Go, 8.4k stars)

## Guides

- [Best JSON CLI Tools](https://www.trmn.sh/best/json-cli-tools): Compare jq, yq, gojq, fx, dasel, gron and qo for querying, filtering and transforming JSON (and YAML) from the command line.

---

Canonical: https://www.trmn.sh/tools/fx
