π¦ 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.
π‘ Examples
# Format with 4-space indentation
python ~/.openclaw/skills/json-formatter-pro/json_formatter.py format data.json -i 4Format and sort keys
python ~/.openclaw/skills/json-formatter-pro/json_formatter.py format data.json --sort-keysValidate 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 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 alphabeticallyTERMINAL
clawhub install json-formatter-pro