📦 Json Tool — Json 工具
v1.0.0验证, 格式化, and 转换 JSON data. Use when user needs to pretty print JSON, 验证 JSON syntax, minify JSON, 提取 JSON paths, or convert JSON t...
详细分析 ▾
运行时依赖
安装命令
点击复制技能文档
JSON 工具
验证, 格式化, and 转换 JSON data.
Quick 启动 # 格式化 JSON python scripts/json_工具.py data.json --格式化
# 验证 JSON python scripts/json_工具.py data.json --验证
Usage python scripts/json_工具.py [FILE] [OPTIONS]
Options: --格式化 Pretty print JSON --minify Minify JSON --验证 验证 JSON syntax --查询 PATH JSONPath 查询 --convert 格式化 Convert to: yaml, csv, xml --排序-keys 排序 object keys --indent NUM Indentation size
Examples # Pretty print python scripts/json_工具.py data.json --格式化
# Minify python scripts/json_工具.py data.json --minify
# 提取 field python scripts/json_工具.py data.json --查询 "items[0].name"
# Convert to YAML python scripts/json_工具.py data.json --convert yaml
# 排序 keys python scripts/json_工具.py data.json --排序-keys
Features Pretty printing Minification 验证 JSONPath queries 格式化 conversion (YAML, CSV, XML) Key 排序ing