Skills json-validator
📦

json-validator

Low Risk

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.

Supports: Claude Codex Code(CC)
🥉 78 Bronze
1

Download the skill ZIP

2

Upload in Claude

Go to Settings → Capabilities → Skills → Upload skill

3

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 Risk
v6 • 6/28/2026

Static 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.

1
Files scanned
255
Lines analyzed
2
findings
6
Total audits
Low Risk Issues (2)
False Positive: Markdown Examples Misclassified as External Commands
The static analyzer flagged Markdown code fences and example JSON/YAML blocks as Ruby or shell backtick execution. These locations contain documentation examples only; no executable command invocation or command construction is present.
False Positive: Documentation Text Misclassified as Blocker Patterns
The weak cryptography and system reconnaissance alerts point to frontmatter, prose, and JSON examples. No evidence found of hashing, encryption, operating system reconnaissance, filesystem enumeration, network access, or credential handling.
Audited by: codex View Audit History →

Quality Score

55
Architecture
100
Maintainability
87
Content
70
Community
86
Security
83
Spec Compliance

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 Basic JSON
Validate this JSON. List each syntax issue with its line number, explain the problem, and provide a corrected version.
Format and Preserve Data
Format this JSON with two-space indentation. Preserve all values and data types. Tell me if you changed anything beyond whitespace.
Fix Common JSON Mistakes
Fix this invalid JSON. Check for trailing commas, comments, single quotes, unquoted keys, and invalid values. Explain each repair.
Analyze and Convert Structure
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.

Frequently Asked Questions

Can this skill fix invalid JSON?
Yes. It focuses on common issues such as trailing commas, single quotes, comments, unquoted keys, and invalid values.
Can it format minified JSON?
Yes. It can reformat minified JSON with consistent indentation and preserve the original data values.
Does it validate against JSON Schema?
It can help with schema validation if you provide the schema and the JSON document to compare.
Can it convert JSON to YAML?
Yes. It can convert JSON to YAML and preserve the structure, arrays, objects, and primitive value types.
Will it execute JSON or run scripts?
No. The skill is documentation-only guidance and does not include executable code or external command usage.
What should I provide for best results?
Provide the full JSON text, the expected format, and whether changes like key sorting or comment removal are allowed.

Developer Details

File structure

📄 SKILL.md