1

I write some code of JSON-LD, but Google’s SDTT is showing an error.

Following is the code.

{
    "@context": "https://schema.org/",
    "@type": "Review",
    "reviewBody": "\"Singapore's top rated maid search portal\" - Business Times",
    "url":"https://web.facebook.com/pg/SearchMaid/reviews/",
    "author": {
        "@type": "Person",
        "name": "Business Times"
    },
    "itemReviewed": {
        "@type": "ProfessionalService",
        "name": "SearchMaid",
        "image":"https://searchmaid.com.sg/assets/dlogo-3dabd5569068236053204ac4881a7f9f4ee72ecd7950275a15ab753c793ead5d.png",
        "telephone":"+6587551411",
        "priceRange":"S$500 - S$700",
        "address": {
        "@type": "PostalAddress",
            "name":"140 Paya Lebar Road, A-Z Building #09-22, Singapore 409015"
        }
    },
    "publisher": {
        "@type": "Organization",
        "name": "SearchMaid"
    },
    "reviewRating": {
        "@type": "Rating",
        "description": "",
        "ratingValue": "5"
    },
    "isBasedOn": {
        "@type": "Product",
        {
            "@type": "AggregateRating",
            "reviewCount": "3"
        }
    }
}

At what place I am doing something wrong?

  • Are you closing the <script> tag? I'm not seeing it in the code you shared – Emirodgar Sep 3 '18 at 9:59
  • yes. but still same error. – A Mobin Sep 3 '18 at 10:07
1

The problem seems to be at isBasedOn > Product > data. Check the isBasedOn documentation and validate with this tool. If you delete the last part, the code is valid.

enter image description here

{
    "@context": "https://schema.org/",
    "@type": "Review",
    "reviewBody": "\"Singapore's top rated maid search portal\" - Business Times",
    "url":"https://web.facebook.com/pg/SearchMaid/reviews/",
    "author": {
        "@type": "Person",
        "name": "Business Times"
    },
    "itemReviewed": {
        "@type": "ProfessionalService",
        "name": "SearchMaid",
        "image":"https://searchmaid.com.sg/assets/dlogo-3dabd5569068236053204ac4881a7f9f4ee72ecd7950275a15ab753c793ead5d.png",
        "telephone":"+6587551411",
        "priceRange":"S$500 - S$700",
        "address": {
        "@type": "PostalAddress",
            "name":"140 Paya Lebar Road, A-Z Building #09-22, Singapore 409015"
        }
    },
    "publisher": {
        "@type": "Organization",
        "name": "SearchMaid"
    },
    "reviewRating": {
        "@type": "Rating",
        "description": "",
        "ratingValue": "5"
    },
    "isBasedOn": {
        "@type": "Product"
    }
}
  • 1
    Thanks. I was missing aggregateRating: before { "isBasedOn": { "@type": "Product", "aggregateRating": { "@type": "aggregateRating", "reviewCount": "149" } } – A Mobin Sep 3 '18 at 10:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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