我正在尝试添加一些结构化数据,但我在Google's SDTT中一直收到错误:
缺少'}'或对象成员名称。
JSON-LD:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "ProfessionalService",
"name": "Authentic Recruitment",
"description": "Recruitment Consultants",
"url": "authenticrecruitment.co.uk",
"location":
{
"@type": "Place",
"address":
{
"@type": "PostalAddress",
"addressLocality": "Sheffield",
"addressRegion": "South Yorkshire"
},
},
}
</script>
我哪里错了?
答案 0 :(得分:0)
在对象中,,
从以下名称中分离出一个值&#34; (RFC 4627, section 2.2)。
如果未跟随名称,则不得使用逗号。
所以而不是
{
"name": "…",
"description": "…",
}
必须是
{
"name": "…",
"description": "…"
}
(对于您的示例,这意味着必须删除最后两个逗号。)