Quay lại kỹ năng
json-toolkit
bởi claudiodrusus
PDF & Documents—Chưa có đánh giá
Đánh giá của bạn
Tóm tắt
Swiss-army knife for JSON files.
Mô tả
Kỹ năng này làm gì
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.
Khi nào nên dùng
- 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
Quy trình ví dụ
ĐẦU VÀO
User asks: get the email of the first user in users.json
AGENT
- 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
ĐẦU RA
"alice@example.com"
Cài đặt
clawhub install claudiodrusus/json-toolkitChạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.