json-glib-format(1)

json-glib-format1

Json formatting tool

Usage

json-glib-format [OPTIONS ...] <FILE> [<FILE> ...]

Overview

json-glib-format offers a simple command line interface to format JSON data. It reads a list or URIs, applies the spacified formatting rules on the JSON data, and outputs the formatted JSON to the standard output or to a file.

The resources to operate on are specified by the FILE argument.

Options

-h, --help

Print a help message and exit.

--output=FILE

Redirects the output to FILE instead of using the standard output.

-p, --prettify

Prettifies the output, by adding spaces and indentation. This argument is useful to improve the readability of JSON data, at the expense of its size.

--indent-spaces=SPACES

Changes the number of spaces using to indent the JSON data from the default of 2. This argument is only considered if --prettify is used.

Releases

7 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13–Arch

--output since Debian 11 (Bullseye).

Author

Emmanuele Bassi

From json-glib 1.10.8-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.