返回 Skill 列表
extension
分类: 开发与工程无需 API Key

enact-json-formatter

如果JSON无效时的错误消息

person作者: jakexiaohubgithub

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
}