Claude
Skills
Sign in
Back

enact-json-formatter

Included with Lifetime
$97 forever

Formats and prettifies JSON with configurable indentation

Generaljsonformattingutility

What this skill does


# JSON Formatter

A simple tool that formats and prettifies JSON strings.

## Usage

```bash
enact run enact/json-formatter --args '{"json": "{\"name\":\"test\",\"value\":123}", "indent": 2}'
```

## Features

- Validates JSON input
- Configurable indentation (default: 2 spaces)
- Returns structured output with validation status
- Handles errors gracefully

## Example Output

```json
{
  "formatted": "{\n  \"name\": \"test\",\n  \"value\": 123\n}",
  "valid": true
}
```

Related in General