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-validatewill terminate with an exit code of0β¨ (slay, ate, no notes) - if the data is invalid, an error will be printed on
stderrandjson-glib-validatewill 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 π₯
0β validation successful. your JSON is giving main character energy, congrats π1β validation error. your JSON said "not me" π
π SEE ALSO π
- JSON-GLib β
https://gitlab.gnome.org/GNOME/json-glibπ json-glib-format(1)β the sibling. the other one. go say hi π§
π 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 π
π¦
π¦ where this page comes from
- arch rolling: json-glib 1.10.8-1 Β· LGPL-2.1-or-later
- debian trixie: json-glib-tools 1.10.6+ds-2
- fedora 43: json-glib-devel 1.10.8-1.fc43 Β· LGPL-2.1-or-later
- fedora 43: json-glib-devel 1.10.8-1.fc43 Β· LGPL-2.1-or-later
- fedora 43: json-glib-devel 1.10.8-4.fc43 Β· LGPL-2.1-or-later
- fedora 43: json-glib-devel 1.10.8-4.fc43 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: json-glib-devel 1.10.6-160000.3.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: json-glib-devel 1.10.6-160000.3.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: json-glib-devel 1.10.6-160000.3.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: json-glib-devel 1.10.6-160000.3.2 Β· LGPL-2.1-or-later
- ubuntu questing: json-glib-tools 1.10.8+ds-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms