JSON-GLIB-VALIDATE(1)

✨ NAME ✨

json-glib-validate β€” the JSON Validation Tool, bestie πŸ’–

okay so real quick: this is a lil command-line bestie that lives in the json-glib fam, and its whole entire job is checking whether your JSON is valid or just giving you chaos energy 😭


🌸 SYNOPSIS 🌸

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

that's it. that's the whole vibe. you pass it a FILE, you get the truth πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so json-glib-validate is literally a simple command line interface for validating JSON data, no cap. it lets you list URIs that point to JSON data, and then it checks that the data actually conforms to the JSON syntax. like, it's doing a vibe check on your JSON and it WILL be honest with you 🫢

the resources you want it to operate on are specified by the FILE argument. that's the one you hand over.

here's the part that matters, so pay attention bestie πŸ‘‘

  • if the JSON data is valid, json-glib-validate will terminate with an exit code of 0 ✨ (slay, ate, no notes)
  • if the data is invalid, an error will be printed on stderr and json-glib-validate will terminate with a nonzero exit code πŸ’€

that's the whole deal. valid = 0, invalid = error on stderr + nonzero exit. periodt.


πŸŽ€ OPTIONS πŸŽ€

  • -h, --help β€” print a help message and exit. iconic. the "just tell me what to do" button πŸ’œ

πŸ”₯ EXIT STATUS πŸ”₯

  1. 0 β€” validation successful. your JSON is giving main character energy, congrats πŸŽ‰
  2. 1 β€” validation error. your JSON said "not me" πŸ™ˆ

🌈 SEE ALSO 🌈


πŸ’œ AUTHOR πŸ’œ

Emmanuele Bassi


ok so that's the whole page, bestie!! this was the json-glib-validate manual page from the text processing section, filed under JSON-GLIB-VALIDATE(1) πŸŽ€βœ¨ stay valid, stay parsed, iykyk πŸ’…πŸ¦‹