GEO AND SEO
What Is JSON-LD? Example, How to Add It and Useful Schema Types
JSON-LD is a small data block that tells search engines what a page is about. Learn its structure, the schema types worth using, how to add it and how to avoid mistakes.

JSON-LD is a small block of data that tells search engines and AI tools, in a tidy and predictable format, what a web page is about. It does not change what visitors see. Behind the scenes it states plainly that this is a business, this is an article, and this is a list of questions and answers. It is the most common way to write structured data today.
What is JSON-LD and why does it matter?
The name stands for JSON for Linked Data. JSON is a way of writing information as pairs of a field name and a value. The linked part means the information can be tied to a shared vocabulary. That vocabulary is called schema.org, and it defines types such as Organization, Article and FAQPage, along with the fields each type can carry.
A person looking at a page can easily tell a business name from a slogan. Software often has to guess. JSON-LD reduces the guessing. A phone number, an address, an author name or a publishing date is handed over labeled and in one consistent form.
It is worth being honest here: adding JSON-LD does not guarantee better rankings. It helps a page become eligible for special displays such as rich results. Whether those appear is entirely the search engine's decision, and it can change over time.
Are structured data and JSON-LD the same thing?
Not exactly. Structured data is the general idea of presenting information in an organized form that machines can read. JSON-LD is one way of doing it. Other formats exist, but search engines often recommend JSON-LD because it is easy to work with. It also stays out of the page's visible HTML, which makes it easier to maintain.
What does a JSON-LD example look like?
Instead of printing full code, let us describe the shape in plain words. A JSON-LD block opens with curly braces and holds pairs of field names and values. For a page of questions and answers, the block is made of these parts:
- The @context field names the vocabulary in use and points to schema.org.
- The @type field states the kind of page, and here it reads FAQPage.
- The mainEntity field holds the list of question and answer pairs.
- Each pair has a Question type with the question text and an Answer type with the reply.
A block for a business follows the same logic. The @type field says Organization, followed by name, url, logo and contact details. For a blog post the @type becomes Article, and you fill in headline, author, datePublished and image.
The whole block sits on the page inside a script tag. The tag's type is written as application/ld+json. Browsers do not draw this block on screen. Only search engines and similar software read it.
Which types (schemas) are actually useful?
Schema.org defines a great many types, yet most sites are well served by a small set. Start by marking up information that really exists on the page.
- Organization and LocalBusiness describe the name, address, opening hours and contact routes of a business.
- WebSite introduces the site's name and main address.
- Article and BlogPosting report a post's title, author and dates.
- FAQPage pairs the frequent questions on a page with their answers.
- BreadcrumbList shows where a page sits inside the site.
- Product carries a product's name, picture and sales details.
- Event describes where and when something takes place.
Whether FAQPage appears as a rich result depends on the search engine's conditions. Even so, writing question and answer pairs clearly, so each one stands on its own, can improve the chance of being quoted in AI summaries. We cover that topic more widely on our GEO page.
How do you add JSON-LD to a website?
The method depends on how the site is built, but the logic is the same everywhere. Even if you do not write code, understanding the steps helps you ask the right questions.
- Pick the type that matches the real content, for example Article for a post or FAQPage for a list of questions.
- Fill in the fields with real information that is visible on the page. Never add facts that the page does not show.
- Place the block inside a script tag whose type is application/ld+json.
- Put the tag in the head or the body of the page. Both are accepted.
- Publish the page, then check it with a validation tool.
If you use a ready-made panel, part of this is often done automatically in the background. If you write it by hand, each page needs its own block that matches its own details. Copying the same article block onto every page is a common mistake.
Common mistakes and how to validate
JSON-LD is unforgiving about small typing slips. A missing comma or an unclosed quotation mark can make the whole block unreadable.
- Marking up information that is not visible on the page damages trust and can break the rules.
- Forgetting to update a phone number, address or opening hours leaves misleading old data.
- Leaving two conflicting blocks on the same page creates confusion.
- Skipping required or recommended fields can make a type useless.
- Inventing reviews or ratings without real data is a serious risk.
How do you validate it?
Two kinds of checks help. The first is the validator offered by schema.org, which looks at whether the syntax and types are consistent. The second is the rich results test provided by search engines, which tells you whether the page is eligible for special displays. Warnings may matter less than errors, but always fix the errors.
On a large site it saves time to check one example of each page type and fix the template, rather than testing every page. Look again from time to time after launch, because a template change can quietly break the block.
Short checklist
- I chose a fitting schema for each page type.
- Everything I marked up is visible on the page.
- The block is valid JSON, with correct commas and quotation marks.
- Phone, address and hours are current.
- There is no second, conflicting block for the same information.
- The validation tool shows no errors.
If you would rather not do all this by hand, mySite.tr offers tools for schema and FAQ sections on sites managed from one panel. You can read the details on the structured data page. For overall search visibility, take a look at the SEO page too.
Frequently asked questions
Is JSON-LD required?
No, a page works and can be indexed without it. Giving extra information does help search engines understand the page correctly, so it is recommended, especially on business, article and question and answer pages.
Does JSON-LD improve rankings?
Promising a direct ranking boost would not be honest. It describes the page better and can make it eligible for rich results, but the decision to show them belongs to the search engine. It works best alongside genuinely useful content.
Should JSON-LD go in the head or the body?
Both are accepted. Most people choose the head because it keeps things tidy. What matters is that the block is present in the HTML when the page loads and that it is valid.
Which schema type should I choose?
Look at the main subject of the page. Organization or LocalBusiness suits a business introduction, Article suits a blog post, and FAQPage suits a list of questions. Several types can appear together on one page.
What happens if the JSON-LD is broken?
The search engine cannot read the block and ignores it. Your page does not look different, but the special displays you hoped for will not appear. Testing after every change is a good habit.
Can I add JSON-LD without knowing how to code?
Yes. Many site panels and plugins generate the block for you as you fill in a form. Knowing which piece of information goes into which field still makes it easier to check the result.
Does JSON-LD do the same job as llms.txt?
No. JSON-LD labels the information inside a page, while llms.txt is a separate file that introduces a site to AI tools. They complement each other but do not replace one another.
Related posts
How does an AI search engine work? A testing and preparation guide for businesses
How does an AI search engine turn a question into an answer, and which sources does it rely on? Ways to test your business in these answe…
How do AI shopping assistants recommend products? 7 steps to prepare
AI assistants now answer "which product should I buy" with suggestions that link to stores. Here are 7 things you can do on your site so …
After Black Friday: how to measure campaign results
In the 7 days after a sale ends, read visits, carts, orders and returns together, find your best products and thank new buyers so they co…


