Technical
Generate JSON-LD that passes validation
Four types, written to the shape Google documents. Empty fields are stripped, required ones are flagged, and you get JSON-LD you can paste without editing.
How Schema Generation Works
What It Generates
JSON-LD, the format Google recommends. Four types: Article, FAQPage, Product and LocalBusiness. Each one is written to the shape Google documents, with empty fields removed so nothing ships as undefined.
The Fields That Decide Eligibility
| Type | Required | Most often forgotten |
|---|---|---|
| Article | headline, author, datePublished | dateModified |
| FAQPage | mainEntity, one question per entry | A question that is not on the page |
| Product | name, offers with price | priceCurrency and availability |
| LocalBusiness | name, address | telephone, openingHours |
Required means Google's documentation lists it. Recommended fields lift the chance of a richer result but are not enforced.
FAQ Entries Need To Be Visible
A FAQPage that marks up questions the page does not display is called out in Search Console and can cost you the rich result. Type the questions exactly as they appear, in the same order.
- One question per line, question first, then a pipe, then the answer.
- Write the answer as a complete sentence. Bullets do not survive the conversion.
- Do not mark up the same answer under three different questions.
Valid Is Not The Same As Eligible
Passing validation only means the markup parses. Google decides eligibility from the page, the query and the type. A product page with no price will validate once you delete the offer, and will not get a price snippet.
- Markup describes the page, it does not change it.
- Never mark up reviews or ratings that were not left by real people.
- Keep one entity per node. Nesting three types into one is usually a mistake.
Where It Stops
- Four types only. Recipe, Event, Video and Review are not generated here.
- No microdata or RDFa, JSON-LD only.
- It cannot place the script for you, and some CMS themes strip it.
- It does not check the rest of the page for conflicting markup.
Common Questions
Where Do I Put The Output?
Inside a script tag with type application/ld+json, anywhere in the head or body. Most CMS SEO fields accept it as raw HTML.
Why Does The FAQ Need To Be Visible?
Google checks that the questions and answers exist on the page. Markup for content that is not displayed is treated as spam and can cost you the rich result.
Will This Get Me A Rich Result?
No guarantee. Eligibility depends on the type, the page and the query. Validate with the JSON-LD validator and Google's Rich Results Test before shipping.
Can I Use Several Types On One Page?
Yes, as separate script blocks or a graph. Keep each entity distinct rather than nesting three types into one node.

