json-ld-valid
What it does
This skill checks the structured data blocks on a page for syntax errors and missing required fields. It is for site owners and developers who want rich search results.
When to use it
- ✓When your rich results do not appear in Google Search Console.
- ✓When you add article, product, FAQ or breadcrumb markup to pages.
- ✓When you generate structured data with code or a template.
Skill link
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/json-ld-valid/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you check my structured data and tell me why rich results are not showing?”
5 new skills a week. 1 minute to read.
How it works
The agent parses each JSON-LD block, checks the context and type, and verifies the required properties for that type. It suggests fixes for syntax errors and missing fields, and recommends Google's Rich Results Test.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Use valid JSON-LD structured data
Invalid JSON-LD is silently ignored by Google — there are no error messages in search results, only the absence of rich results. Invalid structured data means no eligibility for rich results (stars, FAQs, breadcrumbs, etc.) that increase click-through rates.
Quick Reference
- JSON-LD must be valid JSON, reference
@context: 'https://schema.org', and include all required properties for the chosen@type - Invalid JSON (unclosed brackets, missing commas) causes the entire block to be silently ignored by Google
- Validate with Google's Rich Results Test before deploying structured data changes
Check
Find all <script type='application/ld+json'> elements on the page. For each: (1) Attempt to parse the content as JSON — flag syntax errors. (2) Verify @context is set to 'https://schema.org'. (3) Verify @type is a valid schema.org type. (4) For the detected type, check required properties are present (e.g., Article requires headline, author, datePublished; Product requires name; FAQPage requires mainEntity). (5) Run through Google's Rich Results Test API if available.
Fix
- Parse the JSON-LD with
JSON.parse()— fix any syntax errors (trailing commas, single quotes, missing brackets). - Ensure
@contextis exactly"https://schema.org"(not"http://schema.org"or omitted). - Verify the
@typevalue against schema.org types. - Add required properties for the type:
- Article: headline, author (with @type Person and name), datePublished
- Product: name (and ideally offers, description)
- FAQPage: mainEntity array with Question and acceptedAnswer
- BreadcrumbList: itemListElement array with ListItem, position, name, item
- Validate at https://search.google.com/test/rich-results
- Validate JSON syntax at https://jsonlint.com
Explain
Google uses JSON-LD structured data to generate rich results — enhanced search result formats that include stars, images, expandable Q&As, and other features. Invalid JSON-LD is ignored entirely: no rich results are generated, and no error is reported to you. Only by testing with the Rich Results Test can you discover validation failures. Correct, complete JSON-LD is a prerequisite for rich result eligibility.
Code Review
Extract all <script type='application/ld+json'> element contents. Run JSON.parse() on each — catch and report parse errors. Validate that @context equals 'https://schema.org'. Check @type against a whitelist of common valid types. For each type, validate required properties are present and non-empty. Report the first validation error found for each block.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/seo/json-ld-valid
FAQ
Does Google show errors for invalid structured data?
The skill says invalid JSON-LD is silently ignored, so the only sign is missing rich results.
What is a common syntax problem?
The skill mentions trailing commas, single quotes and missing brackets as common causes.
How can the markup be tested?
The skill recommends Google's Rich Results Test before publishing changes.
Details
Original description by the author
Use when generating or auditing any `<script type='application/ld+json'>` blocks, implementing structured data for articles, products, FAQs, breadcrumbs, or local businesses, or investigating why rich results are not appearing in Google Search Console.
Popularity
- GitHub stars
- 75k
- Ranking position
- #2906
- License
- MIT
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
frontendchecklist
75kChecks frontend code and live pages against 380+ rules for accessibility, speed, SEO and security, using a command-line tool.
frontend-checklist-global
75kAudits a frontend project against all 386 Front-End Checklist rules, and gives a specific fix for each issue found.
404-page
75kChecks that your missing-page screen offers helpful links and returns a real 404 status, to help lost visitors find their way.
about-page
75kReviews whether your site has a clear About page that explains who runs it, to build trust with visitors and search engines.
Similar skills
competitive-platform-analysis
280kHelps understand your competitors. It identifies, categorizes, and filters competing companies before any deeper analysis.
competitive-report-structure
280kCreates comprehensive competitor reports. It combines information to show the overall landscape, recommendations, and helps align the team.
lead-intelligence
280kHelps your agent find and contact important people. It analyzes leads, suggests approaches, and manages outreach via email and social media.