<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>json-glib-format: JSON-GLib Reference Manual</title> <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> <link rel="home" href="index.html" title="JSON-GLib Reference Manual"> <link rel="up" href="tools.html" title="JSON-GLib Tools"> <link rel="prev" href="tools.html" title="JSON-GLib Tools"> <link rel="next" href="json-validate-tool.html" title="json-glib-validate"> <meta name="generator" content="GTK-Doc V1.25 (XML mode)"> <link rel="stylesheet" href="style.css" type="text/css"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle"> <td width="100%" align="left" class="shortcuts"></td> <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> <td><a accesskey="u" href="tools.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> <td><a accesskey="p" href="tools.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> <td><a accesskey="n" href="json-validate-tool.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> </tr></table> <div lang="en" class="refentry"> <a name="json-format-tool"></a><div class="titlepage"></div> <div class="refnamediv"><table width="100%"><tr> <td valign="top"> <h2><span class="refentrytitle">json-glib-format</span></h2> <p>json-glib-format — JSON-GLib formatting tool</p> </td> <td class="gallery_image" valign="top" align="right"></td> </tr></table></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2> <div class="cmdsynopsis"><p><code class="command">json-glib-format</code> [<code class="option">-h</code>, <code class="option">--help</code>] [<code class="option">--prettify</code>] [<code class="option">--indent-spaces</code> <em class="replaceable"><code>SPACES</code></em>] URI [ URI... ]</p></div> </div> <div class="refsect1"> <a name="id-1.6.2.2.5"></a><h2>Description</h2> <p><span class="command"><strong>json-glib-format</strong></span> 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.</p> <p> The resources to operate on are specified by the <em class="replaceable"><code>URI</code></em> argument. </p> </div> <div class="refsect1"> <a name="id-1.6.2.2.6"></a><h2>Commands</h2> <div class="variablelist"><table border="0" class="variablelist"> <colgroup> <col align="left" valign="top"> <col> </colgroup> <tbody> <tr> <td><p><span class="term"><code class="option">-h</code>, <code class="option">--help</code></span></p></td> <td><p> Prints help and exits. </p></td> </tr> <tr> <td><p><span class="term"><code class="option">-p</code>, <code class="option">--prettify</code></span></p></td> <td><p> 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. </p></td> </tr> <tr> <td><p><span class="term"><code class="option">--indent-spaces</code> <em class="replaceable"><code>SPACES</code></em></span></p></td> <td><p> Changes the number of spaces using to indent the JSON data from the default of 2. This argument is only considered if <code class="option">--prettify</code> is used. </p></td> </tr> </tbody> </table></div> </div> </div> <div class="footer"> <hr>Generated by GTK-Doc V1.25</div> </body> </html>