Glossary

JSON-LD

JSON-LD is a W3C format for writing linked data as JSON. It is the format Google recommends for adding structured data to web pages.

Also known as: JSON for Linking Data, JSON-LD 1.1

JSON-LD is a format for writing linked data as JSON, and it is the format Google recommends for adding structured data to web pages. In practice it is a small block of code, placed inside a script tag on the page, that lists facts like “this is a LocalBusiness, its name is X, its phone number is Y” using the Schema.org vocabulary.

The W3C JSON-LD 1.1 specification, a W3C Recommendation, defines it as “a JSON-based format to serialize Linked Data”. It was designed to fit easily into systems that already use JSON, which is one of the most common data formats on the web.

Why it matters for an Indian business

There are three common ways to write structured data: JSON-LD, Microdata and RDFa. Google’s structured data introduction marks JSON-LD as “Recommended” and says it is the easiest for website owners to implement and maintain at scale, because it is “less prone to user errors”. Google also says all three formats are equally fine for it, as long as the markup is valid.

The practical benefit for a small business is that JSON-LD sits in one block, separate from the visible text. Your web developer, or whoever manages your WordPress or Shopify site, can add or update it without touching the page design. When your phone number or timings change, there is one place to edit.

An example

Say a bakery in Bengaluru wants its website to state its name, address, opening hours and the areas it delivers to in a machine-readable way. A short JSON-LD block in the page head can carry exactly that:

  • type: Bakery (a kind of LocalBusiness in Schema.org)
  • name, street address, city and PIN code
  • phone number and opening hours
  • the website address and links to its social profiles

Visitors don’t see any of this. Systems that read structured data can.

What to watch for

  • Keep it true. The facts in JSON-LD should match what the page shows. Old hours or a former address in the code send mixed signals.
  • Validate it. A missing comma or bracket can make the whole block unreadable. Test after every change.
  • Plugins can clash. Some website builders and SEO plugins add their own JSON-LD. Two blocks describing the same business differently cause confusion, so check what is already there before adding more.

Structured data is what JSON-LD carries, and Schema.org provides the vocabulary inside it. An entity is the business, person or place being described. Our AI visibility service includes JSON-LD for your business, services and common questions, written and tested for you.

Sources

  1. W3C: JSON-LD 1.1 (W3C Recommendation)
  2. Google Search Central: Introduction to structured data markup in Google Search