JSONLINT(1)
β¨ NAME β¨
jsonlint β a JSON syntax validator and formatter tool π
and yes bestie, this is the jsonlint(1) manual page, we're doing this properly.
π¦ SYNOPSIS π¦
jsonlint [-v][-s|-S][-f|-F][-ecodec]inputfile.json...
πΈ DESCRIPTION πΈ
Okay so real talk: this manual page documents the jsonlint commands, briefly. That's the vibe. Short and sweet, like a text you send when you're running late but still cute. π«Ά
π OPTIONS π
The return status will be 0 if the file is legal JSON, or non-zero otherwise. Use -v to see the warning details β that's your receipt, bestie. π§Ύ
Options are: -v, -s, -S, -f, -F, -e
-v,--verboseβ Show details of lint checking. Spill the tea on what's wrong. π-s,--strictβ Be strict in what is considered legal JSON (this is the default, no cap).-S,--nonstrictβ Be loose in what is considered legal JSON. Live a little. π-f,--formatβ Reformat the JSON (if legal) tostdout. Glow-up, applied.-F,--format-compactlyβ Reformat the JSON similar to-f, but do so compactly by removing all unnecessary whitespace. Same fit, way less fabric. βοΈ-ecodec,--encoding=codec,--input-encoding=codec,--output-encoding=codec β Set the input and output character encoding codec (e.g.,ascii,utf8,utf-16). The-ewill set both the input and output encodings to the same thing. If not supplied, the input encoding is guessed according to the JSON specification. The output encoding defaults toUTF-8, and is used when reformatting (via the-for-Foptions).
When reformatting, all members of objects (associative arrays) are always output in lexigraphical sort order. The default output codec is UTF-8, unless the -e option is provided. Any Unicode characters will be output as literal characters if the encoding permits, otherwise they will be -escaped. You can use "-e ascii" to force all Unicode characters to be escaped.
Not me pointing out that the sorting thing is always happening when you reformat β it's not a choice, it's the house rules. π
π AUTHOR π
jsonlint was written by Deron Meranda <deron.meranda@gmail.com>. Iconic. β¨
This manual page was written by TANIGUCHI Takaki <takaki@debian.org>, for the Debian project (and may be used by others). Slay. π
That's the whole page, bestie β this came from the General Commands Manual, dated 2009-12-01, filed under JSONLINT(1). Go validate something and make it cute. ππ
π¦ where this page comes from
- debian trixie: python3-demjson 3.0.5-1 Β· LGPL-3.0-only
- ubuntu resolute: python3-demjson 3.0.5-1 Β· LGPL-3.0-only
- ubuntu stonking: python3-demjson 3.0.5-1 Β· LGPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms