AGENT SKILL
json-cli
Use this skill when the user wants to parse, filter, or manipulate JSON data.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 57
- Forks
- 5
01 前言 Front Matter
- name
- json-cli
- description
- Use this skill when the user wants to parse, filter, or manipulate JSON data.
03 SKILL.md 正文
JSON CLI Plugin
A json command for massaging JSON on the Unix command line.
Commands
JSON Manipulation
json-cli json parse— Parse and manipulate JSON
Usage Examples
- "json-cli json parse --input '{"key": "value"}'"
- "json-cli json parse --path key"
Installation
npm install -g json
Examples
# Parse JSON string
echo '{"name": "John"}' | json
# Extract keys
echo '{"name": "John", "age": 30}' | json keys
# Extract values
echo '{"name": "John", "age": 30}' | json values
# Extract specific path
echo '{"user": {"name": "John"}}' | json user.name
# Filter array
echo '[{"id": 1}, {"id": 2}]' | json -a 'this.id === 1'
# Pretty print JSON
echo '{"name":"John"}' | json
# Read from file
json < file.json
# Sort by key
echo '{"b": 2, "a": 1}' | json --sort-keys
Key Features
- Parse JSON from stdin or file
- Extract keys and values
- Path-based filtering
- Array filtering
- Sorting
- Pretty printing
- Unix pipeline support
04 同仓库更多 Skills
sc-machin-mcp
暂无简介
★ 57
supercli.quickstart
SuperCLI capability router — discover and execute CLI commands through namespace.resource.action interface
★ 57
zzdoc
Use this skill to compile scdoc manpages with a fast Zig-based compiler.
★ 57
zx
Use this skill when the user wants to a tool for writing better scripts using node.js.
★ 57
zvm
Use this skill when the user wants to manage multiple Zig compiler versions.
★ 57
quickstart
暂无简介
★ 57