JSON-LD语法错误:期望的值,对象或数组

问题描述 投票:0回答:1

我只是想尝试使用标记将我们的事件发送到Google上,我对所有这些都相当新,所以我希望有人可以帮助我刚刚检查了以下内容并得到了上述错误

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Event",
  "name": “Staunton Harold Sportive”,
  "startDate": "2019-05-26T08:00",
  "endDate": "2019-05-26T17:00",
  "location": {
    "@type": "Place",
    "name": “Staunton Harold Hall”,
    "address": {
      "@type": "PostalAddress",
      "streetAddress": “Melbourne Road”,
      "addressLocality": “Ashby De la Zouch“,
      "postalCode": "LE65 1RT",
      "addressRegion": “Derbyshire”,
      "addressCountry": "UK”

    }
  },
  "image": [

    "https://static.wixstatic.com/media/36c4d1_84383c3423f0429b8fe7988a0382dbb0~mv2_d_3905_2194_s_2.png/v1/fill/w_1084,h_608,al_c,usm_0.66_1.00_0.01/Staunton%20Harold%20sportive.png",

   ],
  "description": " 
Fun - 14K
Short - 40K
Medium - 100K
Long - 160K  The Staunton Harold Sportive starts from the privately owned, estate in the stunning surroundings of Staunton Harold Hall  estate, providing the perfect backdrop for a fun and enjoyable bike ride.",
  "offers": {
    "@type": "Offer",
    "url": "https://www.triathlon-events.com/staunton-harold-sportive",
    "price": “20",
    "priceCurrency": “GBP”,
    "availability": "https://schema.org/InStock",
    "validFrom": "2018-05-26T16:00"
  },
  “Organizer”: {
    "@type": “Organizer”,
    "name": “Choose Sports Ltd”
  }
}
</script>
json
1个回答
1
投票

可能是因为你在地方有曲线引号而不是直引号,例如“Staunton Harold Sportive”需要使用“https://schema.org”中使用的直引号。我首先将这些交换出来并重新测试。希望有所帮助。

© www.soinside.com 2019 - 2024. All rights reserved.