1 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.4//EN"
2 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"
4 <!ENTITY % local SYSTEM "local.ent">
6 <!ENTITY % entities SYSTEM "entities.ent">
8 <!ENTITY % idcommon SYSTEM "common/common.ent">
11 <refentry id="yaz-json-parse">
13 <productname>YAZ</productname>
14 <productnumber>&version;</productnumber>
15 <info><orgname>Index Data</orgname></info>
19 <refentrytitle>yaz-json-parse</refentrytitle>
20 <manvolnum>1</manvolnum>
21 <refmiscinfo class="manual">Commands</refmiscinfo>
25 <refname>yaz-json-parse</refname>
26 <refpurpose>YAZ JSON parser</refpurpose>
31 <command>yaz-json-parse</command>
36 <refsect1><title>DESCRIPTION</title>
38 <command>yaz-json-parse</command> is utility which demonstrates
39 the JSON API of YAZ. (<filename>yaz/json.h</filename>).
42 The program attempts to parse a JSON from standard input (stdin).
43 It will return exit code 1 if parsing fails and the parsing error message
44 will be printed to standard error (stderr). The program returns exit code
45 0 parsing succeeds and return no output, unless -p is given (see below).
49 <refsect1><title>OPTIONS</title>
54 Makes the JSON parser echo the JSON result string to standard output -
55 if parsing from stdin was successful. If -p is given twice the
56 output is a multi line output with indentation (pretty print).
62 <refsect1><title>SEE ALSO</title>
65 <refentrytitle>yaz</refentrytitle>
66 <manvolnum>7</manvolnum>
72 <!-- Keep this comment at the end of the file
77 sgml-minimize-attributes:nil
78 sgml-always-quote-attributes:t
81 sgml-parent-document:nil
82 sgml-local-catalogs: nil
83 sgml-namecase-general:t