JSON-LD structured data checker
Check JSON-LD structured data: valid JSON, @context, @type and the usual properties of common schema.org types.
Input
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
| Name | Type | Required | What 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.
Related tools
- Open Graph and meta tag extractorPull the title, description, canonical link, Open Graph, Twitter card, favicons and JSON-LD out of HTML.
og-tags-extract - JSON validatorCheck whether text is valid JSON and get the exact line and column of the first error.
json-validate - Meta tag generatorGenerate ready-to-paste HTML meta tags: title, description, canonical, Open Graph and Twitter card.
meta-tags-generate - .gitignore testerCheck which paths a .gitignore file ignores and which line decided each one, using real Git matching rules.
gitignore-test - Cache-Control explainerExplain a Cache-Control header directive by directive and how browsers and CDNs will treat the response.
cache-control-explain - Card number (Luhn) and IBAN validatorCheck a card number with the Luhn checksum and name its network, or check an IBAN by length and mod-97.
luhn-iban-validate