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 from stdin was successful. and here's the spicy part: if -p is 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