YDUMP(1)
π ydump β the JSON glow-up station π
ok so bestie, welcome to ydump, the JSON pretty printer from the yojson family. It lives in section 1 of the manual (yes, the User Manuals one, iykyk), and it's literally here to make your data look cute instead of looking like a raccoon went through it. π¦
β¨ NAME β¨
ydump β JSON pretty printer. That's it. That's the whole job. She prints JSON. Pretty. Periodt. π
πΈ SYNOPSIS πΈ
ydump [Options...] [file]
π DESCRIPTION π
So here's the tea β: ydump pretty prints data in the extended JSON format of the yojson library. And in case nobody told you β JSON stands for JavaScript Object Notation, and it's a lightweight data-interchange format. Lowkey iconic, highkey everywhere. π
Now, if you just... don't give her a file? She reads from standard input. No file argument, no problem, she's flexible like that. πββοΈ
π OPTIONS π
okay bestie, here's the full menu, every single one, no skips, no cuts:
-o<file>β pretty print to file instead of standard output. Like, redirect the vibes somewhere specific. π-stdβ use JSON standard syntax only: convert tuples and variants into standard JSON, refuse to printNaNand infinities, and require the root node to be either an object or an array. She's being strict, and honestly? Valid. π«-cβ compact output. No extra whitespace, just the bare facts. Minimalist era. β¨-sβ streaming mode: read and write a sequence of JSON values instead of just one. and yes, this is the default, so she's already doing it. π-uβ disable streaming mode: a single JSON record is expected. One and done. π―-sortβ sort object fields. (default: preserve internal field order β so if you don't ask, she doesn't rearrange your stuff, she's not like that π«Ά)-obβ convert to biniou format and pretty print that. (experimental π β you've been warned, she's still figuring herself out)-versionβ print version and exit. Short, sweet, slay. π-help|--helpβ print options. The classic "bestie what are my choices" move. π
π₯ SEE ALSO π₯
- the yojson web site,
http://mjambon.com/yojson.htmlπ - the JSON web site,
http://json.org/πΈ
π AUTHOR π
This manual page was written by Sylvain Le Gall <gildor@debian.org> and Hendrik Tews <hendrik@askra.de>, specifically for the Debian project (and may be used by others). Shoutout to the authors, absolute legends, we stan. π«Άπ
okay final vibe check:ydumpis a yojson girlie from the User Manuals set, dated June 2013, and she's filed underYDUMP(1). that's the whole page bestie, go pretty print something. π β¨ππ¦π
π¦ where this page comes from
- debian bookworm: libyojson-ocaml-dev 2.0.2-2 Β· BSD-3-Clause
- debian trixie: yojson-tools 2.2.2-1+b2 Β· BSD-3-Clause
- ubuntu jammy: libyojson-ocaml-dev 1.7.0-1build3 Β· BSD-3-Clause
- ubuntu noble: libyojson-ocaml-dev 2.1.2-1 Β· BSD-3-Clause
- ubuntu questing: yojson-tools 2.2.2-1build2
- ubuntu resolute: yojson-tools 3.0.0-2build1 Β· BSD-3-Clause
- ubuntu stonking: yojson-tools 3.0.0-2build2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms