1JSON-GLIB-FORMAT(1) User Commands JSON-GLIB-FORMAT(1)
2
3
4
6 json-glib-format - JSON-GLib formatting tool
7
9 json-glib-format [-h, --help] [--prettify] [--indent-spaces SPACES] URI
10 [URI...]
11
13 json-glib-format offers a simple command line interface to format JSON
14 data. It reads a list or URIs, applies the spacified formatting rules
15 on the JSON data, and outputs the formatted JSON to the standard
16 output.
17
18 The resources to operate on are specified by the URI argument.
19
21 -h, --help
22 Prints help and exits.
23
24 -p, --prettify
25 Prettifies the output, by adding spaces and indentation. This
26 argument is useful to improve the readability of JSON data, at the
27 expense of its size.
28
29 --indent-spaces SPACES
30 Changes the number of spaces using to indent the JSON data from the
31 default of 2. This argument is only considered if --prettify is
32 used.
33
35 Emmanuele Bassi
36 Developer
37
38
39
40JSON-GLib JSON-GLIB-FORMAT(1)