返回顶部
j

json-formatter

JSON formatting, validation, and conversion tool. Format, compress, validate JSON, and convert between JSON and YAML.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
97
下载量
0
收藏
概述
安装方式
版本历史

json-formatter

# 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 ```bash python3 skills/json-formatter/scripts/json_formatter.py <action> [options] ``` ## Actions | Action | Description | |--------|-------------| | `format` | Format JSON with indentation | | `compress` | Minify JSON (remove whitespace) | | `validate` | Validate JSON syntax | | `to-yaml` | Convert JSON to YAML | | `from-yaml` | Convert YAML to JSON | ## Options | Option | Type | Default | Description | |--------|------|---------|-------------| | `--input` | string | - | Input string or file path | | `--indent` | int | 2 | Indentation spaces (for format) | | `--file` | bool | false | Treat input as file path | ## Examples ```bash # 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.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 json-wizard-1776103211 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 json-wizard-1776103211 技能

通过命令行安装

skillhub install json-wizard-1776103211

下载 Zip 包

⬇ 下载 json-formatter v1.0.0

文件大小: 3.46 KB | 发布时间: 2026-4-14 10:29

v1.0.0 最新 2026-4-14 10:29
首个版本:支持 JSON 格式化、压缩、校验、JSON-YAML互转

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部