Academy / AEO · answers

AEO · answers

Structured data: schema and JSON-LD for search and AI

By Fernando BalcázarReviewed on 8 min read

The essentials

  • Structured data describes the page in a format machines read without guessing: what business it is, what it sells, where it is.
  • JSON-LD is the format Google recommends: a separate <script> block that leaves the visible HTML alone.
  • It must say the same as the page. Marking up something that is not visible can cost you rich results.
  • It does not guarantee stars or boxes on Google, but without it there is no way to get them.

What it is

A shared vocabulary, schema.org, for saying “this is an organization, this is its logo, these are its profiles”. Search engines and AI assistants use it to understand entities and to build rich results: prices, ratings, FAQs, local business details.

JSON-LD · Organization
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "name": "Roma Dental Clinic",
  "url": "https://yoursite.com",
  "logo": "https://yoursite.com/logo.png",
  "sameAs": ["https://www.instagram.com/yoursite"]
}
</script>

Which type to use

PageTypeThe minimum
Home pageOrganization or LocalBusinessname, url, logo
Business with premisesLocalBusiness or a subtype (Dentist, Restaurant…)name, address, telephone
ProductProduct with Offername, image, offers with price and priceCurrency
Article or guideArticle or BlogPostingheadline, datePublished, author
FAQFAQPagemainEntity with visible questions and answers

Use the most precise subtype that exists. “Dentist” says more than “LocalBusiness”, and “LocalBusiness” more than “Organization”. For businesses with premises, also read LocalBusiness schema and NAP for a business with premises.

How to implement it

  • Start with the base: Organization (or your subtype) and WebSite on the home page; BreadcrumbList on inner pages, for the path context.
  • Generate the JSON-LD on the server, inside the HTML, so any bot reads it without running JavaScript.
  • Link entities with @id. For example, the Article points to your Organization as publisher instead of repeating its details.
  • FAQPage only with visible questions. Google now rarely shows the FAQ rich result, but the markup still helps it understand the page.

How to validate it

  1. Make sure the block is valid JSON: one extra comma and search engines ignore the whole block.
  2. Check the type’s required properties are there, plus the recommended ones you can fill in.
  3. Compare against the page: every value in the JSON-LD has to be visible on it.
  4. Run it through Google’s Rich Results Test or validator.schema.org before publishing.

The SEO Army schema generator and validator checks property by property, flags what your type of business is missing and gives you a complete JSON-LD that keeps what you already declare.

Check it

Check your page’s structured data

Common mistakes

  • Ratings or prices that do not appear on the page. It is the most common cause of Google manual actions.
  • Two plugins publishing the same type with different data.
  • Invalid JSON from curly quotes or stray commas after hand edits.
  • Marking everything as Organization when a subtype describes the business better.

ToolSchema generator and validator →