JSON-LD structured data checker

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

Input

JSON-LD, or HTML that contains application/ld+json script blocks.

Result

Fill in the input and press Run.

Your input is processed in memory and then discarded. It is not stored or logged. Even so, don't paste live passwords or keys into any online tool.

Use it from code or an agent

curl -s https://setget.net/v1/tools/jsonld-validate \
  -H 'Content-Type: application/json' \
  -d '{"input":{"text":"{\"@context\":\"https://schema.org\",\"@type\":\"Organization\",\"name\":\"Example\"}"}}'
import json, urllib.request

body = {'input': {'text': '{"@context":"https://schema.org","@type":"Organization","name":"Example"}'}}
request = urllib.request.Request("https://setget.net/v1/tools/jsonld-validate", json.dumps(body).encode(),
                                 {"Content-Type": "application/json"})
print(json.load(urllib.request.urlopen(request))["result"])
const response = await fetch("https://setget.net/v1/tools/jsonld-validate", {
  method: "POST",
  headers: {"Content-Type": "application/json"},
  body: JSON.stringify({"input":{"text":"{\"@context\":\"https://schema.org\",\"@type\":\"Organization\",\"name\":\"Example\"}"}}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
  "slug": "jsonld-validate",
  "input": {
    "text": "{\"@context\":\"https://schema.org\",\"@type\":\"Organization\",\"name\":\"Example\"}"
  }
}
{
  "input": {
    "text": "{\"@context\":\"https://schema.org\",\"@type\":\"Organization\",\"name\":\"Example\"}"
  }
}

Endpoint: POST /v1/tools/jsonld-validate. Over MCP: run_tool with slug: "jsonld-validate". Machine-readable: input schema, Markdown. Connect an agent.

Inputs

NameTypeRequiredWhat it does
text string yes JSON-LD, or HTML that contains application/ld+json script blocks.

Examples

Input
{
  "text": "{\"@context\":\"https://schema.org\",\"@type\":\"Organization\",\"name\":\"Example\"}"
}
Result
{
  "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."
}

Taken from a script block in HTML

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
{
  "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."
}

Questions

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.