Json “错误”;缺少';}';或对象成员名称“;在谷歌SDTT中
以下是JSON LD数据:Json “错误”;缺少';}';或对象成员名称“;在谷歌SDTT中,json,json-ld,Json,Json Ld,以下是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/
<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>
{
“@context”:”http://schema.org",
“@type”:“新闻文章”,
“页面维护”:{
“@type”:“网页”,
“@id”:”http://healthypets.mercola.com/sites/healthypets/archive/2017/01/25/dog-foods-contain-high-fluoride-levels.aspx"
},
“标题”:“80%的测试狗粮含有高氟化物水平”,
“发布日期”:“2017-01-25T12:00:00Z”,
“修改日期”:“2017年1月18日下午7:28:27”,
“说明”:“一项研究发现,10个狗粮品牌中有8个品牌的氟化物含量比EPA国家饮用水标准高2.5倍。”,
“作者”:{
“@type”:“Person”,
“姓名”:“贝克博士”,
},
“出版商”:{
“@type”:“组织”,
“名称”:“Mercola.com”,
“标志”:{
“@type”:“ImageObject”,
“url”:”http://media.mercola.com/themes/healthypets/images/healthypets-logo-responsive.png",
“宽度”:600,
“身高”:60
}
},
“图像”:{
“@type”:“ImageObject”,
“url”:”http://media.mercola.com/themes/healthypets/images/healthypets-logo-responsive.png",
“宽度”:2000,
“高度”:800
}
}
请参阅以下错误:
我得到的错误是
缺少“}”或对象成员名称
从
作者
对象的最后一个键中删除,
"author": {
"@type": "Person",
"name": "Dr. Becker",
},
应该是
"author": {
"@type": "Person",
"name": "Dr. Becker"
},
您可以在
作者对象属性名称“:“Dr.Becker”,
仅与“name”类似:“Dr.Becker”
不确定它是否接受,
作者
对象末尾的(后跟}
)。您是否在JSON解析器中检查了格式?