Json transform

From bidewio/better-openclaw · View interactive version

Json transform is an AI agent skill from the GitHub repository bidewio/better-openclaw. Manipulate and query JSON data using jq-style operations in the shared volume at {{SHARED_VOLUME}}.

How to use this skill

Skill file

JSON Transform

Process JSON files from the shared volume at {{SHARED_VOLUME}}.

Query and Filter

# Pretty print JSON
jq '.' {{SHARED_VOLUME}}/input/data.json

# Extract a field
jq '.users[].name' {{SHARED_VOLUME}}/input/data.json

# Filter objects
jq '.items[] | select(.price > 10)' {{SHARED_VOLUME}}/input/data.json > {{SHARED_VOLUME}}/output/expensive.json

# Transform structure
jq '{total: (.items | length), names: [.items[].name]}' {{SHARED_VOLUME}}/input/data.json

Merge and Combine

# Merge two JSON files
jq -s '.[0] * .[1]' {{SHARED_VOLUME}}/input/a.json {{SHARED_VOLUME}}/input/b.json > {{SHARED_VOLUME}}/output/merged.json

Tips for AI Agents

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.