【发布时间】:2016-06-27 12:09:10
【问题描述】:
我喜欢将 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>
我收到错误消息,指出缺少“}”或对象成员名称。这是什么错误,我已经正确地关闭了括号。如何解决它请帮助
【问题讨论】:
-
它可能是有效的 JSON,但不是有效的 javascript。
-
你从哪里得到这个错误?