<!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-validate: JSON-GLib Reference Manual</title> <meta name="generator" content="DocBook XSL Stylesheets V1.78.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="json-format-tool.html" title="json-glib-format"> <link rel="next" href="ch05.html" title="Object Hierarchy"> <meta name="generator" content="GTK-Doc V1.21.1 (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="json-format-tool.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> <td><a accesskey="n" href="ch05.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-validate-tool"></a><div class="titlepage"></div> <div class="refnamediv"><table width="100%"><tr> <td valign="top"> <h2><span class="refentrytitle">json-glib-validate</span></h2> <p>json-glib-validate — JSON-GLib validation 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-validate</code> [<code class="option">-h</code>, <code class="option">--help</code>] URI [ URI... ]</p></div> </div> <div class="refsect1"> <a name="id-1.6.2.3.5"></a><h2>Description</h2> <p><span class="command"><strong>json-glib-validate</strong></span> offers a simple command line interface to validate JSON data. It lets you list URIs that point to JSON data and checks that the data conforms to the JSON syntax.</p> <p> The resources to operate on are specified by the <em class="replaceable"><code>URI</code></em> argument. </p> <p> If the JSON data is valid, <span class="command"><strong>json-glib-validate</strong></span> will terminate with an exit code of 0; if the data is invalid, an error will be printed on <em class="replaceable"><code>stderr</code></em> and <span class="command"><strong>json-glib-validate</strong></span> will terminate with a nonzero exit code.</p> </div> <div class="refsect1"> <a name="id-1.6.2.3.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></tbody> </table></div> </div> </div> <div class="footer"> <hr> Generated by GTK-Doc V1.21.1</div> </body> </html>