What does JSON-LD schema markup look like on a page?
JSON-LD is a block of text inside a <script type="application/ld+json"> tag. Google says it can sit in the head or the body of the page, and that it is not mixed in with the text people read, which makes nested details easier to write [2]. Here is a made-up cafe in Singapore described with the schema.org Cafe type.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Cafe",
"name": "Example Kopi",
"telephone": "+65 6000 0000",
"address": {
"@type": "PostalAddress",
"streetAddress": "1 Example Road",
"addressCountry": "SG"
}
}
</script>
The @type line says what the thing is. Every other line is a property of that type. The visible page must say the same name, phone and address, or the markup breaks Google's rules [3].
Which format should I pick: JSON-LD, Microdata or RDFa?
Google accepts all three and says they are equally fine when the markup is valid [2]. It still recommends JSON-LD where your setup allows it, because it is the easiest to build and maintain at scale [2]. Microdata and RDFa add attributes to the visible HTML tags, so editing a page's design can break them. A JSON-LD block lives apart from the layout, so a CMS plugin or a developer can add it without touching the design.
How do I check my schema markup is valid?
- Pick the Google feature you want Each Google rich result has its own guide listing the properties it needs. Open the one that matches your page, such as a local business or product [2].
- Add every required property Google says you must include all required properties for the object to be eligible for the enhanced display [2].
- Run the Rich Results Test Paste the page or code into the tool. Google calls it an easy and useful way to validate structured data and sometimes preview the result [2].
- Watch it after launch Check the rich result status reports in Google Search Console, since markup can break after deployment because of templating or serving issues [2].
What gets schema markup flagged as spam?
Google says its quality rules cannot easily be tested with a tool. Breaking them can stop correct code from showing as a rich result, or get it marked as spam [3]. The main rule is simple: do not mark up content that readers of the page cannot see [3]. The same page also warns against fake reviews and against markup that has nothing to do with the focus of the page [3]. If a page has no reviews, leave review markup off.
A mismatch to avoid
Say your JSON-LD lists a product at S$40 but the page shows S$55. The code does not match what a visitor reads, so fix one of them. Pages whose prices change often are safer when the same template feeds both the page and the markup.
Questions people ask
Is schema markup the same as JSON-LD?
No. Schema.org is the vocabulary of labels. JSON-LD is one way of writing those labels into a page. The other formats are Microdata and RDFa, and Google accepts all three [1][2].
Do I need schema markup to appear in Google's AI answers?
Google says there is no special schema.org structured data you need to add for AI features, and that your markup should match the visible text on the page [4].
Does schema markup improve my ranking?
Google describes structured data as a way to help it understand the page and, for some types, to show rich results [2]. It does not promise a ranking gain.
Pages that link here
AI Overviews, E-E-A-T, Generative engine optimization, Google Merchant Center, JSON-LD, llms.txt, SERP
Blog posts that use this term
See also
- JSON-LD JSON-LD is a way of writing linked data in JSON, the format Google recommends for adding structured data to a web page.
- Google Search Console Google Search Console is a free tool from Google that shows how your website performs in Google Search and which pages Google has trouble reading.
- AI Overviews AI Overviews are AI-written summaries that Google Search shows at the top of some results, with links to the web pages the answer draws on.
- Title tag A title tag is the HTML element that holds a page's title, which search engines often show as the blue headline of a result.
- XML sitemap An XML sitemap is a file on your website that lists the pages you want search engines to find, usually at /sitemap.xml.
References
- Getting started with schema.org using Microdata, Schema.org. Read 27/11/2026.
You use the schema.org vocabulary along with the Microdata, RDFa, or JSON-LD formats to add information to your Web content.
- Intro to how structured data markup works, Google Search Central. Read 27/11/2026.
In general, Google recommends using JSON-LD for structured data if your site's setup allows it, as it's the easiest solution for website owners to implement and maintain at scale
- General structured data guidelines, Google Search Central. Read 27/11/2026.
Don't mark up content that is not visible to readers of the page.
- AI features and your website, Google Search Central. Read 27/11/2026.
There's also no special schema.org structured data that you need to add.