YAZ-JSON-PARSE(1)
π yaz-json-parse β the YAZ JSON parser, bestie edition π
okay so real talk, this is a page from section 1 (Commands) of the manual, and it's all about a lil utility called yaz-json-parse. she's tiny, she's cute, and she's here to show you the JSON API of YAZ (that's yaz/json.h for the girlies taking notes π).
β¨ SYNOPSIS β¨
yaz-json-parse [-p]
that's it. that's the whole vibe. one flag. iconic behavior honestly π
πΈ DESCRIPTION πΈ
so <pink>yaz-json-parse</pink> is a utility whose whole entire job is to demonstrate the JSON API of YAZ, which lives in yaz/json.h. think of it as a little demo girly, showing off the moves π
here's the tea on how she works: the program attempts to parse a JSON from standard input, aka stdin. she's a listener, not a talker, so you gotta feed her the JSON.
now for the outcomes, and yes there are exactly two:
- if the parsing fails, she returns exit code
1, and the parsing error message gets printed to standard error (stderr). so rude, but also valid. - if the parsing succeeds, she returns exit code
0, and she produces no output at all unless you give her-p(peep the options below, bestie π).
ngl that "no output on success" thing is lowkey the whole personality of this program. she did the thing. she's not gonna flex about it. main character energy fr fr π
π OPTIONS π
-pβ makes the JSON parser echo the JSON result string to standard output (stdout), but only if parsing fromstdinwas successful. and here's the spicy part: if-pis given twice, then the output becomes a multi-line output with indentation β aka pretty print β¨ two-ps and suddenly she's doing her makeup for the group chat selfie.
π SEE ALSO π
yaz(7)β go read her too, she's the big sister of this whole situation π«Ά
π AUTHORS π
Index Data β the legends themselves, no cap π§
and that's the whole page, bestie!! this doc shipped with YAZ 5.38.1, dated 10/16/2026, so go forth, pipe some JSON into her, and slay πππ
π¦ where this page comes from
- arch rolling: yaz 5.38.1-1 Β· LicenseRef-yaz
- fedora 44: yaz 5.38.1-1.fc44 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms