Skip to main content

json-tools

Parse, query, and transform JSON data

来源信息

仓库
gebruder/wirken
最近来源活动
2026年9月19日 16:07
检测到的 SKILL.md 语言
英语
星标
186
分支
8

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
4 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
json-tools
description
Parse, query, and transform JSON data
disable-model-invocation
false
metadata
{"wirken":{"requires":{"bins":"[Truncated]"}}}
permissions
{"tools":{"allow":["exec"]},"egress":{"mode":"deny"},"inference":{"allow":["*"]}}
# JSON Tools Parse and transform JSON using jq. ## Query - Pretty print: `echo '<json>' | jq .` - Get field: `echo '<json>' | jq '.field'` - Nested field: `echo '<json>' | jq '.a.b.c'` - Array element: `echo '<json>' | jq '.[0]'` - Array length: `echo '<json>' | jq 'length'` ## Filter and transform - Select fields: `echo '<json>' | jq '{name: .name, id: .id}'` - Filter array: `echo '<json>' | jq '.[] | select(.status == "active")'` - Map: `echo '<json>' | jq '[.[] | .name]'` - Sort: `echo '<json>' | jq 'sort_by(.date)'` - Group: `echo '<json>' | jq 'group_by(.type)'` - Unique: `echo '<json>' | jq '[.[].category] | unique'` ## File operations - Read and query: `jq '.key' file.json` - Compact: `jq -c . file.json` - Raw strings (no quotes): `jq -r '.name' file.json` - Convert to CSV: `jq -r '.[] | [.name, .value] | @csv' file.json`
在 GitHub 查看