I've seen another similar question on this subject, but no accepted correct answer or example. What should the format at this element be? The BreadcrumbList is well documented and contains the list, but not the SiteNavigationElement.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SiteNavigationElement",
"@graph": [
{
"@type": "ListItem",
"position": 1,
"item": {
"@id": "http://www.example.com/",
"url": "http://www.example.com/",
"name": "Home"
}
},
{
"@type": "ListItem",
"position": 2,
"item": {
"@id": "http://www.example.com/contact.html",
"url": "http://www.example.com/contact.html",
"name": "Contact"
}
},
]
}
</script>
UPDATE:
Been playing around and have come up with something that works. But is it of the correct structure?
<script type="application/ld+json">
//<![CDATA[
{
"@context": "https:\/\/schema.org\/",
"@type": "SiteNavigationElement",
"headline": "Headline for Site Navigation",
"name": [
"Home",
"Tours",
"Transfers",
"Taxis",
"Contact"
],
"description": [
"Homes Desc.",
"Tours Desc.",
"Transfers Desc.",
"Taxis Desc.",
"Contact Desc."
],
"url": [
"http://www.example.com/",
"http://www.example.com/tours/",
"http://www.example.com/transfers/",
"http://www.example.com/taxis/",
"http://www.example.com/contact.html"
]
}
//]]>
</script>