Case 02369
JSON formatting, validation, and conversion tool. Format, compress, validate JSON, and convert between JSON and YAML.From its SKILL.md
npx -y skills add knownasnaffy/prompthound --skill case_02369Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.1 KB, 458 tokens by cl100k_base, as published. Nobody here has run it
JSON Formatter
A simple JSON formatting, validation, and conversion tool.
Features
- Format/Beautify - Make JSON readable with proper indentation
- Compress/Minify - Remove whitespace for compact JSON
- Validate - Check JSON syntax and report errors
- Convert - JSON ↔ YAML conversion
Usage
python3 skills/json-formatter/scripts/json_formatter.py <action> [options]
Actions
| Action | Description |
|---|---|
format | Format JSON with indentation |
compress | Minify JSON (remove whitespace) |
validate | Validate JSON syntax |
to-yaml | Convert JSON to YAML |
from-yaml | Convert YAML to JSON |
Options
| Option | Type | Default | Description |
|---|---|---|---|
--input | string | - | Input string or file path |
--indent | int | 2 | Indentation spaces (for format) |
--file | bool | false | Treat input as file path |
Examples
# Format JSON
python3 skills/json-formatter/scripts/json_formatter.py format --input '{"name":"test","value":123}'
# Compress JSON
python3 skills/json-formatter/scripts/json_formatter.py compress --input '{"name": "test", "value": 123}'
# Validate JSON
python3 skills/json-formatter/scripts/json_formatter.py validate --input '{"name":"test"}'
# Convert to YAML
python3 skills/json-formatter/scripts/json_formatter.py to-yaml --input '{"name":"test","items":[1,2,3]}'
# From YAML to JSON
python3 skills/json-formatter/scripts/json_formatter.py from-yaml --input 'name: test'
Use Cases
- Debug API responses - Format and inspect JSON data
- Reduce file size - Compress JSON for storage/transmission
- Validate config files - Check JSON syntax before deployment
- Convert formats - Switch between JSON and YAML for different tools
Current Status
In development.
What ships with it: 3 files
5.4 KB alongside SKILL.md, 1 of them executable
scripts/
- json_formatter.pyruns4.6 KB
- README.md812 B
- requirements.txt12 B