Enact Formatter

Formats and prettifies JSON with configurable indentation

aiskillstore Updated

File contents

JSON Formatter

A simple tool that formats and prettifies JSON strings.

Usage

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

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

aiskillstore/marketplace commit 4b64255d1d

Frequently asked questions

npx skillmds@latest add aiskillstore/enact-formatter