# Invalid JSON in JSON-LD block

> A JSON-LD structured data block contains invalid JSON. Search engines will ignore it entirely.

Source: https://seocode.io/checks/invalid-json-ld

[All checks](https://seocode.io/checks) / Structured data

A JSON-LD structured data block contains invalid JSON.

Critical `invalid-json-ld`

In SEOCode's checks since 30 Apr 2026

- [Add to GitHub](https://github.com/apps/seocode-pr-check/installations/new)

- [Read the docs](https://seocode.io/docs)

## Why this matters.

A JSON-LD structured data block contains invalid JSON. Search engines will ignore it entirely.

Runs on `.html` `.jsx` `.tsx` `.vue` `.svelte` · Critical checks fail the pull request status, so the change cannot merge until it is fixed.

## How to resolve it.

Fix the JSON syntax error in your `<script type="application/ld+json">` block. Use https://validator.schema.org to validate.

**SEOCode writes this fix for you**

On a pull request the fix arrives as a suggestion you can commit in one click, when the change is unambiguous on the line.

## Where this comes from.

- [01 · Intro Structured Datadevelopers.google.com](https://developers.google.com/search/docs/appearance/structured-data/intro-structured-data)

Using a framework? [Next.js](https://seocode.io/nextjs-seo) · [SvelteKit](https://seocode.io/sveltekit-seo) · [Nuxt](https://seocode.io/nuxt-seo)

## Related checks.

JSON-LD and the entity markup that earns rich results and grounds AI answers.

- [01 · No structured data (JSON-LD) found Info Structured data helps search engines understand your content and can unlock rich results (star ratings, breadcrumbs, etc.).](https://seocode.io/checks/missing-json-ld)

- [02 · FAQ structured data is deprecated Warning Google has deprecated the FAQ rich result feature.](https://seocode.io/checks/faq-schema-deprecated)

- [03 · Breadcrumb rich results only appear on desktop Info Google has clarified that breadcrumb rich results only appear on desktop search results, not on mobile.](https://seocode.io/checks/breadcrumbs-desktop-only)

- [04 · Structured data not in initial HTML (JavaScript-generated) Warning Google recommends putting structured data markup (especially for ecommerce/product pages) in the initial HTML response for best results.](https://seocode.io/checks/structured-data-javascript-initial-html)

- [05 · Review schema missing comment or author requirements Info Google recommends implementing a review setup that only accepts ratings and reviews accompanied by both a review comment and the author's name.](https://seocode.io/checks/review-snippet-requires-comment)

- [06 · Practice problem structured data is deprecated Warning The practice problem structured data type is no longer shown in Google Search results.](https://seocode.io/checks/practice-problem-schema-deprecated)

[All 38 structured data checks](https://seocode.io/checks#schema)

## Every check, on every pull request.

SEOCode runs the full ruleset on each change and comments the fixes inline.

- [Add to GitHub](https://github.com/apps/seocode-pr-check/installations/new)

- [Get a website audit](https://seocode.io/audit?from=checks-cta)

Free for public repositories · no credit card
