大网数据广告活动
网站运营与故障问答

schema JSON produces error "Unparsable structured data" in Google Search Console

· 52CE 我爱测

From this article , I'm using: <script type="application/ld+json"> { "@context" : "http://schema.org", "@type" : "Organization", "name" : "Motorfix Wangara", "url" : "https://www.motorfix.com.au", "sameAs" : [ https://foursquare.…

问题原文

原帖链接 · Insight · CC BY-SA 4.0

From this article, I'm using:

<script type="application/ld+json">
{
  "@context" : "http://schema.org",
  "@type" : "Organization",
  "name" : "Motorfix Wangara",
  "url" : "https://www.motorfix.com.au",
  "sameAs" : [
    https://foursquare.com/v/motorfix-automotive-service--repairs/5d7846cccda09f0008a51af7,
    https://www.facebook.com/motorfixperth/,
    https://www.yelp.com.au/biz/motorfix-automotive-service-and-repair-wangara?dsid=ad033,
    https://www.instagram.com/motorfix_perth/,
    https://www.whitepages.com.au/motorfix-automotive-service-repairs-12314283/12314282B,
   ],
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "Unit 2 44 Prindiville Drive, Wangara",
    "addressRegion": "WA",
    "postalCode": "6065",
    "addressCountry": "AU"
  }
}
</script>

@ https://www.motorfix.com.au.

However, in Google Search Console, I see an error:

Unparsable structured data: Incorrect value type

@ the Google Structured Data Testing Tool I see

Syntax error: value, object or array expected.

An array is there.

Can you please tell me how I resolve this error?

Thanks.

已采纳解答

原帖链接 · Michael Scott · CC BY-SA 4.0

You need to add speech marks (") around the URL's you have in that list. Your last URL in the list also can't have a comma after it. I have placed the corrected code below.

{
    "@context" : "http://schema.org",
    "@type" : "Organization",
    "name" : "Motorfix Wangara",
    "url" : "https://www.motorfix.com.au",
    "sameAs" : [
        "https://foursquare.com/v/motorfix-automotive-service--repairs/5d7846cccda09f0008a51af7",
        "https://www.facebook.com/motorfixperth/",
        "https://www.yelp.com.au/biz/motorfix-automotive-service-and-repair-wangara?dsid=ad033",
        "https://www.instagram.com/motorfix_perth/",
        "https://www.whitepages.com.au/motorfix-automotive-service-repairs-12314283/12314282B"
    ],
    "address": {
        "@type": "PostalAddress",
        "streetAddress": "Unit 2 44 Prindiville Drive, Wangara",
        "addressRegion": "WA",
        "postalCode": "6065",
        "addressCountry": "AU"
      }
}

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2019-10-01)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。