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 print NaN and 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 πŸ”₯


πŸ’œ 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: ydump is a yojson girlie from the User Manuals set, dated June 2013, and she's filed under YDUMP(1). that's the whole page bestie, go pretty print something. πŸ’…βœ¨πŸŽ€πŸ¦‹πŸ’–