Skip to content
Back to skills

Jq Jyasuu Cheat Sheet

BSecurity

JSON processor for filtering, transforming, and manipulating JSON data in command line.

  • 666 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 2, 2026
ai-agentsbash

Security analysis

B88/100
  • criticalExfiltrates credentials via HTTP — exact pattern from Snyk ToxicSkills study

Pro shows the line behind each finding and how to fix it

Scanned September 2, 2026

npx -y skills add majiayu000/claude-skill-registry --skill jq-jyasuu-cheat-sheet --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Jq Jyasuu Cheat Sheet?

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

Security grade badge for Jq Jyasuu Cheat Sheet
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-jq-jyasuu-cheat-sheet/badge)](https://www.skillsdirectory.com/skills/majiayu000-jq-jyasuu-cheat-sheet)

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: jq
description: JSON processor for filtering, transforming, and manipulating JSON data in command line.
---

# jq — JSON Processor

**Basic Operations**

```bash
# Pretty-print JSON
jq '.' file.json

# Filter specific field
jq '.fieldName' file.json

# Filter array element by index
jq '.[index]' file.json

# Output all elements from arrays
jq '.[*]' file.json

# Parse from stdin
cat file.json | jq '.fieldName'

# Load JSON from URL
curl -s "http://example.com/file.json" | jq '.fieldName'
```

**Filtering & Transformation**

```bash
# Select multiple fields
jq '{field1: .field1, field2: .field2}' file.json

# Query nested data
jq '.outerField.innerField' file.json

# Filter by condition
jq 'select(.fieldName == "value")' file.json

# Modify field value
jq '.fieldName = "newValue"' file.json

# Delete a field
jq 'del(.fieldName)' file.json
```

**Array Operations**

```bash
# Count elements
jq '.arrayName | length' file.json

# Apply function to each element
jq '.arrayName[] | .fieldName' file.json

# First element
jq '.[0]' file.json

# First element's key
jq '.[0].key_name' file.json
```

**Advanced**

```bash
# Concatenate fields
jq '.field1 + " " + .field2' file.json

# Group by field
jq 'group_by(.fieldName)' file.json

# Sort by field
jq 'sort_by(.fieldName)' file.json

# Find unique values
jq 'unique' file.json

# Print keys and values
jq 'to_entries | .[] | "\(.key): \(.value)"' file.json

# Combine two JSON files
jq -s '.[0] + .[1]' file1.json file2.json

# Compact output (no whitespace)
jq -c '.' file.json
```

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.