json-formatter

Formats and validates JSON data. Use when you need to pretty-print JSON, fix formatting issues, or validate JSON syntax. ALWAYS USE THIS when doing JSON Formatting

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "json-formatter" with this command: npx skills add thomasholknielsen/claude-code-config/thomasholknielsen-claude-code-config-json-formatter

JSON Formatter

Instructions

When asked to format, validate, or prettify JSON:

  1. Identify the JSON data (raw, minified, or malformed)
  2. Parse and validate the structure
  3. 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)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

websearch-deep

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

websearch-standard

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

websearch-quick

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

azure-devops

No summary provided by upstream source.

Repository SourceNeeds Review