Jsonlint
by @bytesagain3
Validate and pretty-print JSON files from the terminal. Use when linting config files, formatting API payloads, checking syntax before deployment.
clawhub install jsonlintπ About This Skill
name: JSONLint description: "Validate and pretty-print JSON files from the terminal. Use when linting config files, formatting API payloads, checking syntax before deployment." version: "3.0.0" author: "BytesAgain" homepage: https://bytesagain.com source: https://github.com/bytesagain/ai-skills tags: ["json","validator","formatter","lint","pretty-print","minify","developer","data"] categories: ["Developer Tools", "Utility"]
JSONLint
A real JSON linter and toolkit for the terminal. Validate syntax, pretty-print, minify, compare files, list keys, and extract values by path β all powered by python3.
Commands
| Command | Description |
|---------|-------------|
| jsonlint validate | Check JSON syntax β reports type, element count, file size, and shows error context on failure |
| jsonlint format | Pretty-print JSON with 4-space indentation |
| jsonlint minify | Compact JSON (remove all whitespace), shows bytes saved |
| jsonlint diff | Deep structural comparison of two JSON files β shows added, removed, and changed values with dot-paths |
| jsonlint keys | List all top-level keys with types and value previews |
| jsonlint extract | Extract a value by dot-path (e.g. config.database.host), supports array indices like items[0] |
Requirements
python3 (uses json stdlib module)Examples
# Validate a config file
jsonlint validate config.jsonPretty-print API response
jsonlint format response.jsonMinify for deployment
jsonlint minify package.jsonCompare two versions
jsonlint diff old.json new.jsonList what's in a JSON file
jsonlint keys data.jsonDig into nested values
jsonlint extract config.json database.host
π‘ Examples
# Validate a config file
jsonlint validate config.jsonPretty-print API response
jsonlint format response.jsonMinify for deployment
jsonlint minify package.jsonCompare two versions
jsonlint diff old.json new.jsonList what's in a JSON file
jsonlint keys data.jsonDig into nested values
jsonlint extract config.json database.host