← 返回
未分类 中文

JSON Wizard

JSON formatting, validation, and conversion tool. Format, compress, validate JSON, and convert between JSON and YAML.
JSON格式化、验证及转换工具。支持格式化、压缩、校验JSON,以及JSON与YAML互转。
freeter226
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 402
下载
💾 4
安装
1
版本
#latest

概述

JSON Formatter

A simple JSON formatting, validation, and conversion tool.

Features

  • Format/Beautify - Make JSON readable with proper indentation
  • Compress/Minify - Remove whitespace for compact JSON
  • Validate - Check JSON syntax and report errors
  • Convert - JSON ↔ YAML conversion

Usage

python3 skills/json-formatter/scripts/json_formatter.py <action> [options]

Actions

ActionDescription
---------------------
formatFormat JSON with indentation
compressMinify JSON (remove whitespace)
validateValidate JSON syntax
to-yamlConvert JSON to YAML
from-yamlConvert YAML to JSON

Options

OptionTypeDefaultDescription
------------------------------------
--inputstring-Input string or file path
--indentint2Indentation spaces (for format)
--fileboolfalseTreat input as file path

Examples

# Format JSON
python3 skills/json-formatter/scripts/json_formatter.py format --input '{"name":"test","value":123}'

# Compress JSON
python3 skills/json-formatter/scripts/json_formatter.py compress --input '{"name": "test", "value": 123}'

# Validate JSON
python3 skills/json-formatter/scripts/json_formatter.py validate --input '{"name":"test"}'

# Convert to YAML
python3 skills/json-formatter/scripts/json_formatter.py to-yaml --input '{"name":"test","items":[1,2,3]}'

# From YAML to JSON
python3 skills/json-formatter/scripts/json_formatter.py from-yaml --input 'name: test'

Use Cases

  1. Debug API responses - Format and inspect JSON data
  2. Reduce file size - Compress JSON for storage/transmission
  3. Validate config files - Check JSON syntax before deployment
  4. Convert formats - Switch between JSON and YAML for different tools

Current Status

In development.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-31 04:59 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Log Parser

freeter226
解析和分析各种日志格式(nginx、apache、syslog、应用日志)。提取关键信息并生成报告。
★ 0 📥 510

Skill Radar

freeter226
扫描、分析并优化AI技能生态系统;在一条命令中诊断使用情况、发现能力缺口并检查版本更新;触发于 "sk...
★ 0 📥 454

URL Toolkit

freeter226
URL编码解码、参数解析及URL操作开发者工具包
★ 0 📥 475