📦 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...

0· 0·0 当前·0 累计
dinghaibin 头像by @dinghaibin (BIN)
0
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
high confidence
The 技能's code and instructions match its 状态d purpose (JSON 验证, 格式化ting, 查询ing, and simple conversions) and 请求 no extra 凭证s or 安装s.
评估建议
This 技能 应用ears to be what it clAIms: a local Python-based JSON 实用工具. Before 安装ing, ensure you have Python avAIlable (and 安装 PyYAML if you need YAML conversion). Note the script will overwrite the 输入 file by default when 格式化ting/minifying/排序ing unless you pass --输出, so use copies for 导入ant files. The 查询 implementation is a simple custom 解析器 (not a full JSONPath engine) so complex queries may fAIl. Because the source/homepage is unknown, consider reviewing the included script (scripts/json_工具.py) ...
详细分析 ▾
用途与能力
Name/description (JSON 验证/格式化/转换) align with the included Python script and 技能.md examples. The script implements 格式化ting, minifying, 验证, 查询ing, key-排序ing, and basic conversions (YAML/CSV) — all described in the manifest. No unrelated binaries, env vars, or 服务s are required.
指令范围
技能.md tells the 代理 to 运行 the included local script agAInst a user-supplied file. The script only reads/writes the specified file(s) and does not attempt to read unrelated 系统 files or 环境 variables, nor does it 发送 data to external 端点s.
安装机制
No 安装 spec — instruction-only usage launching a local Python script. No network 下载s or 归档 提取ion. The script optionally 导入s PyYAML for YAML conversion and prints a pip 安装 suggestion if missing; that is reasonable and documented.
凭证需求
No required 环境 variables, 凭证s, or config paths. The script does not 访问 secrets or other 环境 data.
持久化与权限
always:false and user-invocable:true (defaults). The 技能 does not 请求 persistent 系统 presence or modify other 技能s or 系统 设置tings. Autonomous invocation is allowed by 平台 default but is not coupled with elevated privileges or broad 凭证 访问.
安全有层次,运行前请审查代码。

运行时依赖

无特殊依赖

安装命令

点击复制
官方npx clawhub@latest install json-tool
镜像加速npx clawhub@latest install json-tool --registry https://cn.longxiaskill.com

技能文档

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

数据来源ClawHub ↗ · 中文优化:龙虾技能库