我喜欢将 json-ld 添加到我的网站,然后我想将它添加到我的开发网站来测试它
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Organization",
"url": "xxxxxxxxxxxxxxxx",
"contactPoint": [{
"@type": "ContactPoint",
"telephone": "+xx-xxx-xxx-xxxx",
"contactType": "customer service"
}]
}
</script>
我收到错误消息,指出缺少“}”或对象成员名称。这是什么错误,我已正确关闭括号。如何修复它请帮忙
通常这个错误是因为不需要的逗号,请确保删除每个 { } 块中所有最后一个元素的尾随逗号。
示例片段:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Article",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "http://foo.bar", // Remove comma here
}, // Remove comma here
// Add other required fields if necessary
}
</script>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)