JSONLINT(1)

πŸ“¦
version 3.0.5 Β· 2 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

✨ 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) to stdout. 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. βœ‚οΈ
  • -e codec, --encoding=codec, --input-encoding=codec, --output-encoding=codec β€” Set the input and output character encoding codec (e.g., ascii, utf8, utf-16). The -e will 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 to UTF-8, and is used when reformatting (via the -f or -F options).

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