URL: /rules/schema/json-ld-valid

---
title: "JSON-LD Valid"
description: "Validates JSON-LD structured data"
---

Validates JSON-LD structured data

| | |
|---|---|
| **Rule ID** | `schema/json-ld-valid` |
| **Category** | [Structured Data](/rules/schema) |
| **Scope** | Per-page |
| **Severity** | warning |
| **Weight** | 5/10 |

## Solution

JSON-LD structured data helps search engines understand your content and can unlock rich results. Validate against schema.org rules (headline, author, datePublished for articles, name/url for organizations, etc.) and keep the JSON well-formed. Use SquirrelScan's built-in schema validator to expose the exact missing property path before verifying on Google's Rich Results Test, and ensure each required field points to a canonical resource.

## Enable / Disable

### Disable this rule

```toml squirrel.toml
[rules]
disable = ["schema/json-ld-valid"]
```

### Disable all Structured Data rules

```toml squirrel.toml
[rules]
disable = ["schema/*"]
```

### Enable only this rule

```toml squirrel.toml
[rules]
enable = ["schema/json-ld-valid"]
disable = ["*"]
```
