Skip to content
Back to skills

Jsonlint

ASecurity

Validate and pretty-print JSON files from the terminal. Use when linting config files, formatting API payloads, checking syntax before deployment.

  • 12 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 7, 2026
toolspythongobashgitapidatabase

Works with

  • terminal
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add bytesagain/ai-skills --skill jsonlint --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Jsonlint?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Jsonlint
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bytesagain-jsonlint/badge)](https://www.skillsdirectory.com/skills/bytesagain-jsonlint)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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 <file>` | Check JSON syntax — reports type, element count, file size, and shows error context on failure |
| `jsonlint format <file>` | Pretty-print JSON with 4-space indentation |
| `jsonlint minify <file>` | Compact JSON (remove all whitespace), shows bytes saved |
| `jsonlint diff <file1> <file2>` | Deep structural comparison of two JSON files — shows added, removed, and changed values with dot-paths |
| `jsonlint keys <file>` | List all top-level keys with types and value previews |
| `jsonlint extract <file> <path>` | Extract a value by dot-path (e.g. `config.database.host`), supports array indices like `items[0]` |

## Requirements

- `python3` (uses `json` stdlib module)

## Examples

```bash
# Validate a config file
jsonlint validate config.json

# Pretty-print API response
jsonlint format response.json

# Minify for deployment
jsonlint minify package.json

# Compare two versions
jsonlint diff old.json new.json

# List what's in a JSON file
jsonlint keys data.json

# Dig into nested values
jsonlint extract config.json database.host
```

Files in this skill

  • SKILL.md1.7 KB
  • scripts/script.sh10.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…