返回技能列表
json-toolkit
由 claudiodrusus 提供
PDF & Documents—暂无评分
你的评分
简介
Swiss-army knife for JSON files.
描述
该技能的功能
A zero-dependency Python command-line tool for JSON manipulation. It pretty-prints, validates, minifies, queries nested values with dot notation, and sorts object keys using only Python's standard library.
No additional packages to install since it relies entirely on Python's standard library, so it works on any machine with Python without a setup step.
何时使用
- Formatting a raw API response to read during debugging
- Checking a config file for JSON syntax errors before deployment
- Extracting a specific nested field from a large JSON payload
- Minifying a JSON file before bundling for production
- Sorting package.json keys before committing to reduce diff noise
示例工作流
输入
User asks: get the email of the first user in users.json
智能体
- 1
Runs python main.py users.json --query data.users.0.email
- 2
Reads and parses the JSON file
- 3
Navigates the dot-notation path data.users.0.email
- 4
Prints the matched value to stdout
输出
"alice@example.com"
安装
clawhub install claudiodrusus/json-toolkit运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。