DOKK / manpages / debian 12 / yaz / yaz-json-parse.1.en
YAZ-JSON-PARSE(1) Commands YAZ-JSON-PARSE(1)

yaz-json-parse - YAZ JSON parser

yaz-json-parse [-p]

yaz-json-parse is a utility which demonstrates the JSON API of YAZ. (yaz/json.h).

The program attempts to parse a JSON from standard input (stdin). It will return exit code 1 if parsing fails and the parsing error message will be printed to standard error (stderr). The program returns exit code 0 if parsing succeeds, and returns no output unless -p is given (see below).

-p

Makes the JSON parser echo the JSON result string to standard output, if parsing from stdin was successful. If -p is given twice, then the output is a multi-line output with indentation (pretty print).

yaz(7)

Index Data

01/19/2023 YAZ 5.34.0