File: json-glib-format.rst

package info (click to toggle)
json-glib 1.10.6%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,476 kB
  • sloc: ansic: 13,543; sh: 39; python: 28; makefile: 16; javascript: 5
file content (53 lines) | stat: -rw-r--r-- 1,233 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
.. _json-glib-format:

================
json-glib-format
================

--------------------
JSON Formatting Tool
--------------------

:Author: Emmanuele Bassi
:Manual section: 1
:Manual group: text processing

SYNOPSIS
--------
|   **json-glib-format** [OPTIONS...] <FILE> [<FILE>...]

DESCRIPTION
-----------

``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.

SEE ALSO
--------

* `JSON-GLib <https://gitlab.gnome.org/GNOME/json-glib>`__
* ``json-glib-validate(1)``