1YAZ-JSON-PARSE(1) Commands YAZ-JSON-PARSE(1)
2
3
4
6 yaz-json-parse - YAZ JSON parser
7
9 yaz-json-parse [-p]
10
12 yaz-json-parse is a utility which demonstrates the JSON API of YAZ.
13 (yaz/json.h).
14
15 The program attempts to parse a JSON from standard input (stdin). It
16 will return exit code 1 if parsing fails and the parsing error message
17 will be printed to standard error (stderr). The program returns exit
18 code 0 if parsing succeeds, and returns no output unless -p is given
19 (see below).
20
22 -p
23 Makes the JSON parser echo the JSON result string to standard
24 output, if parsing from stdin was successful. If -p is given twice,
25 then the output is a multi-line output with indentation (pretty
26 print).
27
29 yaz(7)
30
31
32
33YAZ 5.14.11 10/09/2015 YAZ-JSON-PARSE(1)