You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

WordPress站点头部JSON+LD解析错误排查:缺失'}'或对象成员名

JSON-LD解析错误修复方案

问题根源

你遇到的Parsing error: Missing '}' or object member name错误,由两个核心问题导致:

  1. 末尾多余逗号:两个JSON对象的最后一个属性(第一个是sameAs数组,第二个是worksFor对象)后都加了逗号,而JSON语法不允许对象/数组的最后一个成员存在 trailing comma。
  2. 引号格式混用:部分属性名的引号误用了中文格式(比如openingHoursSpecification、dayOfWeek的属性名引号),导致解析器无法识别。

修复后的完整代码

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "MedicalBusiness",
  "name": "Sirona Therapy",
  "image": "https://www.sironatherapies.com/wp-content/uploads/2016/12/header.png",
  "@id": "",
  "url": "https://www.sironatherapies.com",
  "telephone": "(914) 241-0727",
  "priceRange": "$",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "280 N Bedford Rd #301",
    "addressLocality": "Mount Kisco",
    "addressRegion": "NY",
    "postalCode": "10549",
    "addressCountry": "US"
  },
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": 41.2178324,
    "longitude": -73.71753639999997
  },
  "openingHoursSpecification": [{
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": [
      "Monday",
      "Tuesday",
      "Wednesday",
      "Thursday",
      "Friday"
    ],
    "opens": "09:30",
    "closes": "19:30"
  },{
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": "Saturday",
    "opens": "10:00",
    "closes": "15:00"
  }],
  "sameAs": [
    "https://www.facebook.com/sironatherapywestchester/",
    "https://www.youtube.com/channel/UC3kADQ4Bobe1VqoBWt8iLjQ",
    "https://www.linkedin.com/company/sirona-therapy/",
    "https://www.instagram.com/sironatherapywestchester/"
  ]
}
</script>
<script type="application/ld+json">
{
  "@context": "http://schema.org/",
  "@type": "Person",
  "name": "Jennifer L Zauner LCSWR",
  "url": "https://www.sironatherapies.com/",
  "image": "https://www.sironatherapies.com/wp-content/uploads/2019/08/DSCF8021-200x200.jpg",
  "sameAs": [
    "https://www.facebook.com/sironatherapywestchester/",
    "https://www.youtube.com/channel/UC3kADQ4Bobe1VqoBWt8iLjQ",
    "https://www.linkedin.com/company/sirona-therapy/",
    "https://www.instagram.com/sironatherapywestchester/"
  ],
  "jobTitle": "Owner",
  "worksFor": {
    "@type": "Organization",
    "name": "Sirona Therapy"
  }
}
</script>

修复细节说明

  • 移除两个JSON对象最后一个属性后的多余逗号,符合JSON语法规范。
  • 统一所有属性名的引号为英文双引号,避免解析器识别异常。

内容的提问来源于stack exchange,提问作者Sirona Man

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.22 11:32:06