如何从下面的代码中修复附加图片中的JSON代码错误?

时间:2017-07-09 12:28:41

标签: json

Google Structured Data Markup Helper生成的JSON-LD标记。

图片中的错误说明。

official docs

这是我的json

python -m trace --trace

1 个答案:

答案 0 :(得分:1)

在值的末尾多了几个逗号。

下面有效的JSON

{
  "@context": "http://schema.org",
  "@type": "Article",
  "headline": "7 Ways To .........",
  "author": {
    "@type": "Person",
    "name": "xxxxxxxxx"
  },
  "datePublished": "2017-06-22T08:50",
  "image": {
    "@type": "imageObject",
    "url": "xxxxx"
  },
  "articleSection": "Use one of three methods to find the value of the business–cash flow, market or assets. Then boost business value quickly.",
  "url": "xxxxx",
  "publisher": {
    "@type": "Organization",
    "name": "xxxxxxxxxx",
    "logo": {
      "@type": "imageObject",
      "url": "xxxxxx"
    }
  }
}