JSON-LD (JavaScript Object Notation for Linked Data) is a format for adding Structured Data to web pages. It is the method Google recommends for Schema Markup.
JSON-LD sits inside a script tag with type=”application/ld+json”, usually in the page head. Because it is separate from the visible HTML, it is easier to add, edit and maintain than older formats such as Microdata or RDFa.
A simple example describes a business with properties such as @context (https://schema.org), @type (LocalBusiness), name, address, telephone, openingHours and url.
What JSON-LD is used for:
- Describing your organization or local business.
- Marking up products, reviews, articles, events, FAQs and videos.
- Connecting your site to official profiles with sameAs.
- Making pages eligible for Rich Results.
Good practice:
- Only mark up information that appears on the page.
- Use the most specific type that fits, such as Dentist rather than LocalBusiness.
- Avoid conflicting markup from several plugins.
- Test with Google’s Rich Results Test and the Schema Markup Validator.
- Monitor structured data reports in Google Search Console.
Most WordPress SEO plugins output JSON-LD automatically. Our technical SEO team adds custom JSON-LD where plugins fall short.
