How to validate JSON-LD
To validate JSON-LD, paste your script block into HubSEO's Schema Validator or test the live URL. The validator parses the JSON, verifies required properties and data types against Schema.org Zod schemas, and highlights formatting errors or missing fields that impede rich snippet generation.
Validating JSON-LD against Schema.org Specifications
Validating JSON-LD ensures that your structured data scripts are syntactically valid JSON and contain all required properties mandated by Google Search and Schema.org standards.
| Schema Type | Required Properties | Common Errors |
|---|---|---|
| Organization | @context, @type, name, url | Missing @id or invalid logo URL |
| SoftwareApplication | @context, @type, name, offers | Missing priceCurrency or price |
| FAQPage | @context, @type, mainEntity | Malformed Question or Answer structures |
| Article | @context, @type, headline, image | Missing author or datePublished |
Frequently Asked Questions
How do I test my JSON-LD script?
Paste your script block into HubSEO's Schema Validator or enter your live page URL.
Where should JSON-LD scripts be placed in HTML?
In the <head> or <body> of your document enclosed within <script type="application/ld+json">.
Can I use multiple JSON-LD scripts?
Yes, search engines parse all valid application/ld+json blocks found on the page.
How do I fix schema errors?
Review the validation error traces to add missing required properties or correct JSON formatting.