: Any way to validate Schema.org JSON-LD before publishing? I have a site with a lot of data, and I'm dynamically building JSON-LD data that I think is Schema.org correct. I can't find a dead-on
I have a site with a lot of data, and I'm dynamically building JSON-LD data that I think is Schema.org correct. I can't find a dead-on example on Schema.org, and it will take forever if I have to publish the content live, then wait for Google to say there's a problem, then re-attempt it, then wait again, etc.
This is an example of what I'd like to validate:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "TravelAction",
"agent": {
"type": "Person",
"name": "John Schmuckatelly"
}
"fromLocation": {
"@type": "Country",
"name": Curacao",
"@type": "GeoCoordinates",
"latitude": 12.05",
"longitude": -68.81667"
}
"toLocation": {
"@type": "Country",
"name":Aruba
}
}
</script>
More posts by @Candy875
1 Comments
Sorted by latest first Latest Oldest Best
Tool from Yandex
The "Structured data validator" supports JSON-LD.
Alexander Shubin (working for Yandex) wrote:
Pls, take into account that in order to check JSON-LD you need to put it in tag (since this is how it should be embedded into html).
E.g.,
<script type="application/ld+json">{
"@context":"http://schema.org",
"@type" : "CommunicateAction",
"instrument" : {
"@type" : "EmailMessage"
},
"handler" : {
"@type" : "WebHandler",
"url" : "http://www.example.com/send_email"
}
}
</script>
Tools from Google
The "Email Markup Tester" supports JSON-LD, which could also be used for JSON-LD intended for web pages.
Justin Boyan (working for Google) wrote:
While Google's Structured Data Testing Tool doesn't support JSON-LD, we do
have an Email Markup Tester g.co/EmailMarkupTester that does --
tailored, as you might guess, to the use cases supported by
Gmail<https://developers.google.com/gmail/actions/reference/formats/json-ld>.
Still, it's possible to paste in arbitrary JSON-LD (in a script tag, as
with Yandex's tool).
Update 2015-01: Google has released a new Structured Data Testing Tool with "Expanded support for the JSON-LD markup syntax":
developers.google.com/webmasters/structured-data/testing-tool/
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.