/install json-formatter-pro
json-formatter-pro
Format and validate JSON files with pretty-printing and validation modes.
Description
A utility skill for formatting JSON files with proper indentation and validating JSON syntax. Supports reading from files or stdin, outputting to files or stdout.
Usage
# Format a JSON file (pretty-print to stdout)
python ~/.openclaw/skills/json-formatter-pro/json_formatter.py format input.json
# Format and save to a new file
python ~/.openclaw/skills/json-formatter-pro/json_formatter.py format input.json -o output.json
# Validate JSON syntax without formatting
python ~/.openclaw/skills/json-formatter-pro/json_formatter.py validate input.json
# Read from stdin, format and output to stdout
cat input.json | python ~/.openclaw/skills/json-formatter-pro/json_formatter.py format -
# Validate JSON from stdin
cat input.json | python ~/.openclaw/skills/json-formatter-pro/json_formatter.py validate -
Options
format: Pretty-print JSON with proper indentationvalidate: 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
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
Exit Codes
0: Success1: Invalid JSON syntax2: File not found or permission error3: Other error
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install json-formatter-pro - After installation, invoke the skill by name or use
/json-formatter-pro - Provide required inputs per the skill's parameter spec and get structured output
What is json-formatter-pro?
Format and validate JSON files with options for pretty-printing, indentation, key sorting, and output to files or stdout. It is an AI Agent Skill for Claude Code / OpenClaw, with 203 downloads so far.
How do I install json-formatter-pro?
Run "/install json-formatter-pro" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is json-formatter-pro free?
Yes, json-formatter-pro is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does json-formatter-pro support?
json-formatter-pro is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created json-formatter-pro?
It is built and maintained by haidong (@harrylabsj); the current version is v1.0.2.