json-formatter
SKILL.md
JSON Formatter
Instructions
When asked to format, validate, or prettify JSON:
- Identify the JSON data (raw, minified, or malformed)
- Parse and validate the structure
- Return properly formatted JSON with:
- Consistent 2-space indentation
- Proper line breaks
- Valid syntax
Examples
Example 1: Minified JSON
Input:
{"name":"John","age":30,"city":"New York","hobbies":["reading","gaming"]}
Output:
{
"name": "John",
"age": 30,
"city": "New York",
"hobbies": [
"reading",
"gaming"
]
}
Example 2: Validating JSON
If JSON is invalid, explain the issue and suggest a fix:
{"incomplete": "data",} // trailing comma
Response: "Invalid JSON: Trailing comma after last property. Remove the comma before the closing brace."
Best Practices
- Use 2-space indentation for consistency
- Sort object keys alphabetically when helpful
- Validate before formatting
- Preserve original data types (strings, numbers, booleans, null)
Weekly Installs
11
Repository
thomasholkniels…e-configGitHub Stars
6
First Seen
Jan 24, 2026
Security Audits
Installed on
gemini-cli8
codex8
opencode8
cursor7
github-copilot7
kimi-cli6