enact/json-formatter

Format and validate JSON strings into readable indented text.

Updated Dec 30, 2025
One-click install
npx skills add https://github.com/while-basic/enact-template --skill enact-json-formatter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: enact/json-formatter
Source: https://github.com/while-basic/enact-template/tree/main/examples/json-formatter
Command: npx skills add https://github.com/while-basic/enact-template --skill enact-json-formatter

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

JSON data is often emitted as compact strings that are hard to read during debugging, logging, or integration testing. This Skill formats and validates JSON strings into properly indented, human-friendly text, saving time and reducing errors.

Core Features & Use Cases

  • JSON formatting: Convert raw JSON into nicely indented, readable output.
  • Validation & error reporting: Detects invalid JSON and returns a clear error description.
  • Use Case: When inspecting API payloads, logs, or sample inputs, run this tool to obtain a structured, readable representation of the JSON content.

Quick Start

Run: enact run enact/json-formatter --args '{"json": "{"name":"World"}", "indent": 2}'

Frequently Asked Questions about enact/json-formatter

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I format a compact JSON string into readable output?

JSON formatting converts compact strings into properly indented, human-friendly text. This Skill parses raw JSON and outputs structured, readable text with configurable indentation, saving time and reducing errors during debugging.

How do I validate JSON and find syntax errors in API payloads?

JSON validation detects invalid syntax and returns a clear error description. This Skill uses a parser to check validity, providing error information that helps identify issues in API payloads, logs, or sample inputs during integration testing.

Can I customize the indentation level when pretty-printing JSON?

Yes, pretty-printing JSON supports configurable indentation. This Skill accepts an indentation parameter, allowing you to specify the exact number of spaces for nested elements to achieve the readable format you need.

What's the best way to inspect raw JSON logs during debugging workflows?

The best way to inspect raw JSON logs is to run a formatter that produces structured, readable text. This Skill formats compact log strings into properly indented output, making it easier to analyze data during debugging and log inspection workflows.

Does JSON formatting work with data processing and integration testing tasks?

JSON formatting works directly with data processing and integration testing tasks. This Skill takes raw JSON strings from sample inputs or API payloads and formats them into readable, indented text suitable for these workflows.

What happens when JSON validation encounters invalid input?

When JSON validation encounters invalid input, it returns a clear error description. This Skill parses the string to check validity and provides error information, helping you quickly locate and fix syntax issues in your JSON data.