JSON-GLIB-FORMAT(1)

πŸ’– JSON-GLIB-FORMAT πŸ’–

okay bestie, so this is the manual for json-glib-format, and it lives in the text processing section of the manual pages, iykyk. it's the JSON Formatting Tool. that's literally the whole vibe. let's go πŸ¦‹


✨ NAME ✨

json-glib-format β€” the JSON Formatting Tool, aka your new bestie for making ugly JSON look cute 🌸


✨ SYNOPSIS ✨

json-glib-format [OPTIONS...] <FILE> [<FILE>...]

✨ DESCRIPTION ✨

so here's the tea πŸ«– json-glib-format gives you a super simple command line interface for formatting JSON data. it reads a list of URIs, applies the formatting rules you specified, and then outputs the formatted JSON to the standard output β€” or to a file if that's more your vibe.

the resources it's gonna operate on? those are the ones you hand it in the FILE argument. no FILE, no formatting, periodt.


✨ OPTIONS ✨

  • -h, --help β€” prints a help message and then dips. classic. πŸ’…
  • --output=FILE β€” redirects the output into FILE instead of just spilling it onto the standard output. very "I have a designated folder for this" of you.
  • -p, --prettify β€” prettifies the output by adding spaces and indentation. this one is iconic for making JSON data actually readable to human eyes πŸ‘€ at the expense of its size. bigger file, prettier file, that's the trade, no cap.
  • --indent-spaces=SPACES β€” changes how many spaces get used to indent the JSON data, from the default of 2. > heads up bestie: this one is only considered if you also used --prettify. otherwise it's just sitting there, ignored, minding its own business πŸ™ˆ

🌈 SEE ALSO 🌈


πŸ‘‘ AUTHOR πŸ‘‘

Emmanuele Bassi


so yeah, that's the whole page, and the manual itself is JSON-GLIB-FORMAT(1) β€” that's the source/version tag and the whole reason we're here. go forth and prettify responsibly, bestie πŸ’œ βœ¨πŸŽ€