Skip to main content
Tweeted twitter.com/StackWebmasters/status/808914721634131968
Post Reopened by unor, John Conde
added 61 characters in body; edited tags; edited title
Source Link
unor
  • 21.9k
  • 3
  • 47
  • 118

Json ld Google SDTT gives error "Missing '}' or object member name." for my JSON- need quick helpLD

I wrote a code to create jsol ldJSON-LD for multiple locations for one of my websites. But Google testing toolGoogle testing tool returns an error: https://search.google.com/structured-data/testing-tool

Missing '}' or object member name.

The error is related to missing }}, or ]], but that's not all right. Because the syntax is correct.

Below is the code I used, maybe others are also in the same condition these days.:

<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "LocalBusiness",
"name": "Company",
"url": "http://www.example.com",
[
{"address": {
    "addressLocality": "United Arab Emirates",
    "addressRegion": "Dubai",
    "streetAddress": "Building 213",
        "telephone" : "04 444 5555"
     "openingHours": ["Su, Mo,Tu,We,Th, 09:00-18:00"],
    },

{"address": {
    "addressLocality": "Jordan",
    "addressRegion": "Amman",
    "postalCode":"XXXXXXX",
    "streetAddress": "Building 213"
     "openingHours": ["Su, Mo,Tu,We,Th, 09:00-18:00"],
    },



{"address": {
    "addressLocality": "Lebanon",
    "addressRegion": "Beirut",
    "streetAddress": "Building 213",
    "telephone" : "+961 444 5555"
     "openingHours": ["Su, Mo,Tu,We,Th, 09:00-18:00"],
    },


{"address": {
    "addressLocality": "Qatar",
    "addressRegion": "Doha",
    "streetAddress": "Building 213",
    "telephone" : "+1(503) 444 5555"
     "openingHours": ["Su, Mo,Tu,We,Th, 09:00-18:00"],
    },

{"address": {
    "addressLocality": "Saudi Arabia",
    "addressRegion": "Riyadh",
    "streetAddress": "Building 213",
        "telephone" : "+966 1 4444 5555"
     "openingHours": ["Su, Mo,Tu,We,Th, 09:00-18:00"],

    },

{"address": {
    "addressLocality": "Egypt",
    "addressRegion": "New Cairo",
    "streetAddress": "Building 213",
        "telephone" : "+20 2 44445555"
     "openingHours": ["Su, Mo,Tu,We,Th, 09:00-18:00"],

    }
],

"description": "Company description",
"email":"[email protected]",
"logo": "http://www.example.com/w-logo.png",
"sameAs" : [ "https://www.facebook.com/Example",
"https://twitter.com/Example",
"https://plus.google.com/+Example",
"https://www.youtube.com/user/Example",
"http://www.slideshare.net/Example",
"https://www.linkedin.com/company/Example"]
}
</script>

Please discuss

<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "LocalBusiness",
"name": "Company",
"url": "http://www.example.com",
[
{"address": {
    "addressLocality": "United Arab Emirates",
    "addressRegion": "Dubai",
    "streetAddress": "Building 213",
        "telephone" : "04 444 5555"
     "openingHours": ["Su, Mo,Tu,We,Th, 09:00-18:00"],
    },

{"address": {
    "addressLocality": "Jordan",
    "addressRegion": "Amman",
    "postalCode":"XXXXXXX",
    "streetAddress": "Building 213"
     "openingHours": ["Su, Mo,Tu,We,Th, 09:00-18:00"],
    },



{"address": {
    "addressLocality": "Lebanon",
    "addressRegion": "Beirut",
    "streetAddress": "Building 213",
    "telephone" : "+961 444 5555"
     "openingHours": ["Su, Mo,Tu,We,Th, 09:00-18:00"],
    },


{"address": {
    "addressLocality": "Qatar",
    "addressRegion": "Doha",
    "streetAddress": "Building 213",
    "telephone" : "+1(503) 444 5555"
     "openingHours": ["Su, Mo,Tu,We,Th, 09:00-18:00"],
    },

{"address": {
    "addressLocality": "Saudi Arabia",
    "addressRegion": "Riyadh",
    "streetAddress": "Building 213",
        "telephone" : "+966 1 4444 5555"
     "openingHours": ["Su, Mo,Tu,We,Th, 09:00-18:00"],

    },

{"address": {
    "addressLocality": "Egypt",
    "addressRegion": "New Cairo",
    "streetAddress": "Building 213",
        "telephone" : "+20 2 44445555"
     "openingHours": ["Su, Mo,Tu,We,Th, 09:00-18:00"],

    }
],

"description": "Company description",
"email":"[email protected]",
"logo": "http://www.example.com/w-logo.png",
"sameAs" : [ "https://www.facebook.com/Example",
"https://twitter.com/Example",
"https://plus.google.com/+Example",
"https://www.youtube.com/user/Example",
"http://www.slideshare.net/Example",
"https://www.linkedin.com/company/Example"]
}
</script>

Json ld - need quick help

I wrote a code to create jsol ld for multiple locations for one of my websites. But Google testing tool returns an error: https://search.google.com/structured-data/testing-tool

The error is related to missing }, or ] but that's not all right. Because the syntax is correct.

Below is the code I used, maybe others are also in the same condition these days.

<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "LocalBusiness",
"name": "Company",
"url": "http://www.example.com",
[
{"address": {
    "addressLocality": "United Arab Emirates",
    "addressRegion": "Dubai",
    "streetAddress": "Building 213",
        "telephone" : "04 444 5555"
     "openingHours": ["Su, Mo,Tu,We,Th, 09:00-18:00"],
    },

{"address": {
    "addressLocality": "Jordan",
    "addressRegion": "Amman",
    "postalCode":"XXXXXXX",
    "streetAddress": "Building 213"
     "openingHours": ["Su, Mo,Tu,We,Th, 09:00-18:00"],
    },



{"address": {
    "addressLocality": "Lebanon",
    "addressRegion": "Beirut",
    "streetAddress": "Building 213",
    "telephone" : "+961 444 5555"
     "openingHours": ["Su, Mo,Tu,We,Th, 09:00-18:00"],
    },


{"address": {
    "addressLocality": "Qatar",
    "addressRegion": "Doha",
    "streetAddress": "Building 213",
    "telephone" : "+1(503) 444 5555"
     "openingHours": ["Su, Mo,Tu,We,Th, 09:00-18:00"],
    },

{"address": {
    "addressLocality": "Saudi Arabia",
    "addressRegion": "Riyadh",
    "streetAddress": "Building 213",
        "telephone" : "+966 1 4444 5555"
     "openingHours": ["Su, Mo,Tu,We,Th, 09:00-18:00"],

    },

{"address": {
    "addressLocality": "Egypt",
    "addressRegion": "New Cairo",
    "streetAddress": "Building 213",
        "telephone" : "+20 2 44445555"
     "openingHours": ["Su, Mo,Tu,We,Th, 09:00-18:00"],

    }
],

"description": "Company description",
"email":"[email protected]",
"logo": "http://www.example.com/w-logo.png",
"sameAs" : [ "https://www.facebook.com/Example",
"https://twitter.com/Example",
"https://plus.google.com/+Example",
"https://www.youtube.com/user/Example",
"http://www.slideshare.net/Example",
"https://www.linkedin.com/company/Example"]
}
</script>

Please discuss

Google SDTT gives error "Missing '}' or object member name." for my JSON-LD

I wrote a code to create JSON-LD for multiple locations for one of my websites. But Google testing tool returns an error:

Missing '}' or object member name.

The error is related to missing }, or ], but that's not all right. Because the syntax is correct.

Below is the code I used, maybe others are also in the same condition these days:

<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "LocalBusiness",
"name": "Company",
"url": "http://www.example.com",
[
{"address": {
    "addressLocality": "United Arab Emirates",
    "addressRegion": "Dubai",
    "streetAddress": "Building 213",
        "telephone" : "04 444 5555"
     "openingHours": ["Su, Mo,Tu,We,Th, 09:00-18:00"],
    },

{"address": {
    "addressLocality": "Jordan",
    "addressRegion": "Amman",
    "postalCode":"XXXXXXX",
    "streetAddress": "Building 213"
     "openingHours": ["Su, Mo,Tu,We,Th, 09:00-18:00"],
    },



{"address": {
    "addressLocality": "Lebanon",
    "addressRegion": "Beirut",
    "streetAddress": "Building 213",
    "telephone" : "+961 444 5555"
     "openingHours": ["Su, Mo,Tu,We,Th, 09:00-18:00"],
    },


{"address": {
    "addressLocality": "Qatar",
    "addressRegion": "Doha",
    "streetAddress": "Building 213",
    "telephone" : "+1(503) 444 5555"
     "openingHours": ["Su, Mo,Tu,We,Th, 09:00-18:00"],
    },

{"address": {
    "addressLocality": "Saudi Arabia",
    "addressRegion": "Riyadh",
    "streetAddress": "Building 213",
        "telephone" : "+966 1 4444 5555"
     "openingHours": ["Su, Mo,Tu,We,Th, 09:00-18:00"],

    },

{"address": {
    "addressLocality": "Egypt",
    "addressRegion": "New Cairo",
    "streetAddress": "Building 213",
        "telephone" : "+20 2 44445555"
     "openingHours": ["Su, Mo,Tu,We,Th, 09:00-18:00"],

    }
],

"description": "Company description",
"email":"[email protected]",
"logo": "http://www.example.com/w-logo.png",
"sameAs" : [ "https://www.facebook.com/Example",
"https://twitter.com/Example",
"https://plus.google.com/+Example",
"https://www.youtube.com/user/Example",
"http://www.slideshare.net/Example",
"https://www.linkedin.com/company/Example"]
}
</script>
added 1 character in body
Source Link
Julia
  • 61
  • 4

The codeerror is related to missing }, or ] but that's not all right. Because the syntax is correct.

The code is related to missing }, or ] but that's not all right. Because the syntax is correct.

The error is related to missing }, or ] but that's not all right. Because the syntax is correct.

edits based on Dan's response.
Source Link
Julia
  • 61
  • 4

I am tryingguessing Google structured data testing tool behaves strange.

I wrote a code to create jsol ld for multiple locations for one of my websites. But Google testing tool returns an error: https://search.google.com/structured-data/testing-tool

The code is related to missing }, or ] but that's not all right. Because the syntax is correct.

Below is the code: I used, maybe others are also in the same condition these days.

Please help me.discuss

I am trying to create jsol ld for multiple locations for one of my websites. But Google testing tool returns an error: https://search.google.com/structured-data/testing-tool

Below is the code:

Please help me.

I am guessing Google structured data testing tool behaves strange.

I wrote a code to create jsol ld for multiple locations for one of my websites. But Google testing tool returns an error: https://search.google.com/structured-data/testing-tool

The code is related to missing }, or ] but that's not all right. Because the syntax is correct.

Below is the code I used, maybe others are also in the same condition these days.

Please discuss

Post Closed as "Not suitable for this site" by dan
code edits
Source Link
Julia
  • 61
  • 4
Loading
Source Link
Julia
  • 61
  • 4
Loading