2

I am continuously getting the following error:

Missing '}' or object member name.

Does anyone see what it is referring to? I am not missing the ending }.

    {
        "@context": "http://schema.org",
        "@type": "ProfessionalService",
        "additionalType": "http://www.productontology.org/id/Web_design",
        "name": "site",
        "url": "example.com",
        "logo": "example.png",
        "description": "Company",
        "telephone": "555 555 5555",
        "areaServed": ["Canton", "Akron", "Fairlawn", " Medina", "Hudson", "Green", "Cleveland", "Massillon", "Independence", "Stow", "North Canton", "Baberton"],
    }
2
  • 3
    Try removing the last comma before the '}'. See the second example here. Note that you can also whittle these problems down by removing data and retesting.
    – dan
    Commented Oct 20, 2018 at 2:30
  • 1
    Glad it helped. Feel free to add that as an answer below and accept it when you can to complete the question and make it clearer to others what worked. You'll receive some more reputation here as well.
    – dan
    Commented Oct 20, 2018 at 2:55

2 Answers 2

1

Dan provided a suggestion that ended up working. I removed the last comma from the areaServed parameter. This resolved the issue I was having.

0

I have got another solution for this: Please check ImageObject, if that's not found then the error could occur.

For example:

"image":{
                "@type":"ImageObject",
                "url":"xyz.jpg",
                "width":"830",
                "height": "553"
                }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.