json-validator
Validate JSON Data Faster
Broken JSON slows API work, configuration reviews, and data handoffs. This skill validates, formats, repairs, converts, and explains JSON issues in clear steps.
Download the skill ZIP
Upload in Claude
Go to Settings → Capabilities → Skills → Upload skill
Toggle on and start using
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "json-validator". A configuration file contains a trailing comma and one key written without quotes.
Expected outcome:
The skill reports two syntax errors, explains why strict JSON rejects them, and returns a corrected configuration.
Using "json-validator". A minified API response needs to be reviewed before debugging.
Expected outcome:
The skill produces a readable formatted response and summarizes the object keys, arrays, and nesting depth.
Using "json-validator". A team needs a YAML version of a valid JSON settings file.
Expected outcome:
The skill converts the structure to YAML and notes any areas where arrays or nested objects need review.
Security Audit
Low RiskStatic analysis reported external command, weak cryptography, and reconnaissance patterns, but the reviewed locations are Markdown prose or fenced JSON/YAML examples. No executable code, shell command construction, cryptographic implementation, reconnaissance logic, network calls, environment access, or prompt injection text was found. The skill is safe to publish with the static findings dismissed as false positives.
Low Risk Issues (2)
Quality Score
What You Can Build
Repair API Payloads
Find syntax errors in request or response payloads and return a corrected version with explanations.
Clean Configuration Files
Format and validate JSON configuration before it is committed or shared with a deployment system.
Review Data Structure
Summarize object keys, array sizes, nesting depth, and repeated patterns before data transformation work.
Try These Prompts
Validate this JSON. List each syntax issue with its line number, explain the problem, and provide a corrected version.
Format this JSON with two-space indentation. Preserve all values and data types. Tell me if you changed anything beyond whitespace.
Fix this invalid JSON. Check for trailing commas, comments, single quotes, unquoted keys, and invalid values. Explain each repair.
Analyze this JSON structure, summarize key types and nesting depth, then convert it to YAML while preserving the original data meaning.
Best Practices
- Validate JSON before formatting or converting it.
- Ask before sorting keys or removing comments from user-provided data.
- Preserve numbers, booleans, null values, and strings exactly unless the user requests a change.
Avoid
- Do not silently change data values while fixing syntax.
- Do not assume comments are safe to remove without user approval.
- Do not treat JSON-like JavaScript objects as valid strict JSON.