返回顶部
j

jsonpretty

Format, validate, query, flatten, and analyze JSON data. Use when asked to pretty-print JSON, validate JSON syntax, query nested JSON with dot-notation, flatten nested structures, get JSON statistics, or compact JSON output. Reads from files or stdin pipe. Zero dependencies — pure Python.

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

jsonpretty

# jsonpretty 📋 JSON swiss army knife — format, validate, query, flatten, stats. ## Commands ```bash # Pretty-print (from file or stdin) python3 scripts/jsonpretty.py data.json echo '{"a":1}' | python3 scripts/jsonpretty.py # Validate JSON python3 scripts/jsonpretty.py --validate data.json # Query with dot-notation echo '{"user":{"name":"Rogue"}}' | python3 scripts/jsonpretty.py -q "user.name" # Flatten nested JSON cat data.json | python3 scripts/jsonpretty.py --flat # Structure stats (key count, depth, types, size) python3 scripts/jsonpretty.py --stats data.json # Compact output (minify) python3 scripts/jsonpretty.py --compact data.json # Sort keys python3 scripts/jsonpretty.py --sort data.json ``` ## Features - Pretty-print with 2-space indent (default) - JSON validation with error messages - Dot-notation querying (supports array indices: `key[0].sub`) - Flatten nested objects to `key.subkey = value` pairs - Structure statistics: key count, nesting depth, type distribution, byte size - Compact/minify mode - Sorted key output - Reads from file or stdin

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 jsonpretty-1775973375 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 jsonpretty-1775973375 技能

通过命令行安装

skillhub install jsonpretty-1775973375

下载 Zip 包

⬇ 下载 jsonpretty v1.0.0

文件大小: 4.32 KB | 发布时间: 2026-4-13 10:43

v1.0.0 最新 2026-4-13 10:43
- Initial release of jsonpretty, a pure Python tool for JSON formatting and analysis.
- Supports pretty-printing, validation with error messages, dot-notation querying (including array indices), and flattening of nested JSON.
- Provides JSON structure statistics: key count, maximum depth, data type summary, and byte size.
- Includes compact (minify) and key-sorting output modes.
- Works with files or stdin; zero external dependencies required.

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

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

p2p_official_large
返回顶部