Back to list
thechandanbhagat

json

by thechandanbhagat

Collection of claude skills

0🍴 0📅 Jan 26, 2026

SKILL.md


name: json description: Parse, validate, transform, and manipulate JSON data. Use for JSON operations, schema validation, and data transformation. allowed-tools: Read, Write, Bash

JSON Processing Skill

Work with JSON data efficiently.

1. Parse and Query

Using jq:

# Pretty print
cat data.json | jq '.'

# Select field
cat data.json | jq '.users[0].name'

# Filter arrays
cat data.json | jq '.users[] | select(.age > 18)'

# Map transformation
cat data.json | jq '.users[] | {name, email}'

# Count elements
cat data.json | jq '.users | length'

2. Validate JSON

Python:

import json
import jsonschema

schema = {
    "type": "object",
    "properties": {
        "name": {"type": "string"},
        "age": {"type": "number", "minimum": 0}
    },
    "required": ["name", "age"]
}

data = {"name": "John", "age": 30}
jsonschema.validate(instance=data, schema=schema)

3. Transform JSON

jq transformations:

# Rename keys
jq '.users[] | {fullName: .name, emailAddress: .email}'

# Flatten nested structure
jq '[.users[] | {name, city: .address.city}]'

# Group by
jq 'group_by(.category) | map({category: .[0].category, items: .})'

# Merge objects
jq '. + {newField: "value"}'

4. Convert Formats

JSON to CSV:

jq -r '.[] | [.name, .email, .age] | @csv' data.json > output.csv

JSON to YAML:

python -c "import json, yaml; print(yaml.dump(json.load(open('data.json'))))"

When to Use This Skill

Use /json for JSON parsing, validation, transformation, and conversion tasks.

Score

Total Score

45/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

0/5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon