🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

json-formatter-pro

by @harrylabsj

Format and validate JSON files with options for pretty-printing, indentation, key sorting, and output to files or stdout.

Versionv1.0.2
πŸ’‘ Examples

# Format with 4-space indentation
python ~/.openclaw/skills/json-formatter-pro/json_formatter.py format data.json -i 4

Format and sort keys

python ~/.openclaw/skills/json-formatter-pro/json_formatter.py format data.json --sort-keys

Validate a JSON file

python ~/.openclaw/skills/json-formatter-pro/json_formatter.py validate config.json

Output: Valid JSON or error message with line number

βš™οΈ Configuration

  • format: Pretty-print JSON with proper indentation
  • validate: Check if JSON is valid without formatting output
  • -o, --output: Specify output file (default: stdout)
  • -i, --indent: Number of spaces for indentation (default: 2)
  • --sort-keys: Sort JSON keys alphabetically
  • View on ClawHub
    TERMINAL
    clawhub install json-formatter-pro

    πŸ§ͺ Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    πŸ” Can't find the right skill?

    Search 60,000+ AI agent skills β€” free, no login needed.

    Search Skills β†’