Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Json “错误”;缺少';}';或对象成员名称“;在谷歌SDTT中_Json_Json Ld - Fatal编程技术网

Json “错误”;缺少';}';或对象成员名称“;在谷歌SDTT中

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/

以下是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>

{
“@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解析器中检查了格式?