Glossary

What is JSON-LD? Structured data in a script tag

Also called: JavaScript Object Notation for Linked Data

Shaheer Malik
Shaheer Malik
Founder, WebValet
3 min readUpdated

The short answer

JSON-LD (JavaScript Object Notation for Linked Data) describes a page's key facts in a small block of code. It sits in a script tag, separate from the words visitors read. Google recommends it for structured data. It tells search engines and other crawlers exactly what your business, product or article is.

  • JSON-LD is a code format for structured data, placed inside a script tag on the page.
  • It uses the Schema.org vocabulary, so types like Organization and Product mean the same thing everywhere.
  • Google recommends JSON-LD over the older Microdata and RDFa formats.
  • The markup must describe content that visitors can actually see on the page.
  • Valid JSON-LD makes your facts easier to read, but it does not guarantee rich results or AI mentions.

What does JSON-LD mean in plain words?

Think of JSON-LD as a labeled fact sheet hidden in your page's code. Visitors never see it. Search engines and other machines read it first.

JSON is a simple text format for data. It uses names and values, like "name": "Example Dental Clinic". The LD part means linked data. Each fact points to a shared dictionary, so every machine reads it the same way.

That shared dictionary is Schema.org. It is a vocabulary that Google, Microsoft, Yahoo and Yandex started together. It defines types such as Organization, LocalBusiness, Product, Article and FAQPage.

Why does JSON-LD matter for a business?

Your page says many things at once. A crawler has to guess which text is your name, your price or your opening hours. JSON-LD removes the guessing.

Clear facts help Google show rich results, such as product prices, review stars or event dates. Eligibility depends on Google's rules for each type, and nothing is guaranteed.

Clear facts also support how machines understand your brand as one consistent entity. That helps search engines connect your site, your profiles and your logo. It is one small part of being described correctly in AI answers too.

Treat JSON-LD as a way to state facts precisely, not as a trick to win extra visibility.

How does JSON-LD work on a page?

You add a script tag with the type application/ld+json. Inside it, you write one object or a list of objects. Each object has an @context, an @type and its properties.

It can go in the head or the body of the page. Many sites add it through their CMS, a plugin or a template. Here is a simple example for a fictional clinic.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Dentist",
  "name": "Example Dental Clinic",
  "url": "https://www.example.com/",
  "telephone": "+44 161 000 0000",
  "address": {
    "@type": "PostalAddress",
    "addressLocality": "Manchester",
    "addressCountry": "GB"
  }
}
</script>

How do you check your JSON-LD?

Broken JSON-LD is common. One missing comma can make the whole block unreadable. Check it whenever you change templates.

WebValet's free check looks for structured data as part of its AI readiness review. It takes about 20 seconds and needs no signup.

  1. 1

    View the page source

    Search for application/ld+json and confirm the block is in the HTML the server sends.

  2. 2

    Run Google's Rich Results Test

    It shows which rich result types Google can read from the page, and any errors.

  3. 3

    Run the Schema Markup Validator

    The validator at validator.schema.org checks any Schema.org type, not only Google's features.

  4. 4

    Watch Search Console

    The enhancement reports flag errors across many pages after Google recrawls them.

Common JSON-LD mistakes

Most problems come from copy-paste markup that drifted away from the real page.

  • Marking up reviews, prices or questions that are not visible on the page.
  • Using curly quotes or trailing commas, which break the JSON syntax.
  • Giving a different business name or address than the one on your contact page.
  • Injecting the markup only with client-side JavaScript, which some crawlers may never run.
  • Leaving old markup in place after a rebrand, a move or a price change.

These terms get mixed up often. Here is how they fit together.

TermWhat it is
Structured dataThe general idea of describing page facts in a machine-readable way.
Schema.orgThe shared vocabulary of types and properties.
JSON-LDThe code format Google recommends for writing that vocabulary.
Microdata and RDFaOlder formats that add attributes directly to visible HTML.
Rich resultAn enhanced search listing that valid markup can make a page eligible for.

Questions people ask

Is JSON-LD the same as schema markup?

Not quite. Schema markup is the vocabulary from Schema.org. JSON-LD is one format for writing it, and the one Google recommends.

Where should JSON-LD go on the page?

Google can read it in the head or the body. What matters most is that it is in the HTML and describes visible content.

Do AI chatbots read JSON-LD?

AI platforms do not publish exactly how they use structured data. Any crawler that fetches your HTML can see the block. Search engines clearly use it, and some AI answers draw on search indexes. Treat it as helpful groundwork, not a guaranteed lever.

Does WebValet check my JSON-LD?

Yes, the free check looks for structured data on your site as part of its readiness review. It does not rewrite your markup for you. If you want that done for you, the Hire Team Shaheer Malik plan covers hands-on fixes.

Put it to work

Check it, track it, or have it done

No trial and no lock-in. Start free, then choose.

  1. 01 · Start here

    Free check

    $0no signup

    See how ready your site is for Google and AI crawlers. About 20 seconds.

    Run a free check
  2. 02 · Track it weekly

    Pro

    $19/month · or $190/year

    25 buyer prompts on ChatGPT, Gemini and Perplexity, against 3 competitors. No trial, cancel anytime.

    Get Pro
  3. 03 · Done for you

    Hire Team Shaheer Malik

    $249/month · Pro included

    Shaheer's team does your SEO and GEO every month: pages, citations, listings and fixes.

    Schedule a call