# JSON-LD structured data checker

Check JSON-LD structured data: valid JSON, @context, @type and the usual properties of common schema.org types.

- Endpoint: `POST https://setget.net/v1/tools/jsonld-validate` with JSON `{"input": {...}}`
- MCP: `run_tool` with `slug` = `jsonld-validate`
- Page: https://setget.net/tools/jsonld-validate

## Inputs

- `text` (required, string): JSON-LD, or HTML that contains application/ld+json script blocks.

## Example 1

```json
{"input":{"text":"{\"@context\":\"https://schema.org\",\"@type\":\"Organization\",\"name\":\"Example\"}"}}
```

Result:

```json
{"valid":false,"blocks":1,"items":[{"block":1,"type":"Organization","known_type":true,"problems":["Organization needs the property \"url\"."],"missing_recommended":["logo","sameAs","contactPoint"]}],"problems":[],"note":"This is a structural check only. It is not Google's Rich Results Test and does not guarantee rich results."}
```

## Example 2: Taken from a script block in HTML

```json
{"input":{"text":"<script type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"FAQPage\",\"mainEntity\":[{\"@type\":\"Question\",\"name\":\"Is it free?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Yes.\"}}]}</script>"}}
```

Result:

```json
{"valid":true,"blocks":1,"items":[{"block":1,"type":"FAQPage","known_type":true,"problems":[],"missing_recommended":[]}],"problems":[],"note":"This is a structural check only. It is not Google's Rich Results Test and does not guarantee rich results."}
```

**Is this the same as the Rich Results Test?** No. It checks structure: that the JSON parses, that @context and @type are present, and that common types carry their usual properties. Search engines apply further rules of their own.

**Which types are checked in detail?** Article (also NewsArticle and BlogPosting), Product, FAQPage, BreadcrumbList, Organization, SoftwareApplication and WebSite. Other types are only checked for @context and @type.

**Does a missing recommended property make it invalid?** No. Only problems do. Recommended properties are listed so you can add them.
