Google SDTT 中的错误 "Missing '}' or object member name"
Error "Missing '}' or object member name" in Google SDTT
我有以下JSON LD数据:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "NewsArticle",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "http://healthypets.mercola.com/sites/healthypets/archive/2017/01/25/dog-foods-contain-high-fluoride-levels.aspx"
},
"headline": "80 Percent of Tested Dog Foods Contain High Fluoride Levels",
"datePublished": "2017-01-25T12:00:00Z",
"dateModified": "1/18/2017 7:28:27 PM",
"description": "A study found that 8 out of 10 dog food brands contained fluoride 2.5 times higher than the EPA national drinking water standard.",
"author": {
"@type": "Person",
"name": "Dr. Becker",
},
"publisher": {
"@type": "Organization",
"name": "Mercola.com",
"logo": {
"@type": "ImageObject",
"url": "http://media.mercola.com/themes/healthypets/images/healthypets-logo-responsive.png",
"width": 600,
"height": 60
}
},
"image": {
"@type": "ImageObject",
"url": "http://media.mercola.com/themes/healthypets/images/healthypets-logo-responsive.png",
"width": 2000,
"height": 800
}
}
</script>
请查看以下错误:
我收到错误消息
Missing '}' or object member name.
从 author
对象的最后一个键中删除 ,
"author": {
"@type": "Person",
"name": "Dr. Becker",
},
应该是
"author": {
"@type": "Person",
"name": "Dr. Becker"
},
上测试您的 JSON-LD
从 author
对象 属性 "name": "Dr. Becker",
中的第 14 行删除逗号
只喜欢"name": "Dr. Becker"
我有以下JSON LD数据:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "NewsArticle",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "http://healthypets.mercola.com/sites/healthypets/archive/2017/01/25/dog-foods-contain-high-fluoride-levels.aspx"
},
"headline": "80 Percent of Tested Dog Foods Contain High Fluoride Levels",
"datePublished": "2017-01-25T12:00:00Z",
"dateModified": "1/18/2017 7:28:27 PM",
"description": "A study found that 8 out of 10 dog food brands contained fluoride 2.5 times higher than the EPA national drinking water standard.",
"author": {
"@type": "Person",
"name": "Dr. Becker",
},
"publisher": {
"@type": "Organization",
"name": "Mercola.com",
"logo": {
"@type": "ImageObject",
"url": "http://media.mercola.com/themes/healthypets/images/healthypets-logo-responsive.png",
"width": 600,
"height": 60
}
},
"image": {
"@type": "ImageObject",
"url": "http://media.mercola.com/themes/healthypets/images/healthypets-logo-responsive.png",
"width": 2000,
"height": 800
}
}
</script>
请查看以下错误:
我收到错误消息
Missing '}' or object member name.
从 author
对象的最后一个键中删除 ,
"author": {
"@type": "Person",
"name": "Dr. Becker",
},
应该是
"author": {
"@type": "Person",
"name": "Dr. Becker"
},
上测试您的 JSON-LD
从 author
对象 属性 "name": "Dr. Becker",
只喜欢"name": "Dr. Becker"