Skip to content
Back to skills

Json

ASecurity

Parse, validate, transform, and manipulate JSON data. Use for JSON operations, schema validation, and data transformation.

  • 8 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 10, 2026
businesspythongobash

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add thechandanbhagat/claude-skills --skill json --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Json?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Json
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thechandanbhagat-json/badge)](https://www.skillsdirectory.com/skills/thechandanbhagat-json)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
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:**
```bash
# 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:**
```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:**
```bash
# 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:**
```bash
jq -r '.[] | [.name, .email, .age] | @csv' data.json > output.csv
```

**JSON to YAML:**
```bash
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.