Structured data with syntax errors detected

Topic summary

Users are encountering structured data syntax errors in their Shopify stores, flagged by Google Search Console.

Primary Issue (Alexa71):

  • Missing comma in the product schema’s main-product.liquid file
  • Error occurs before the "url" field in the offers section
  • Affects a custom night guards product page

Solution Provided:

  • Check sections/main-product.liquid for modifications
  • Add missing comma after shippingDetails object and before "url" field
  • Reference provided to original Dawn theme code on GitHub for comparison

Secondary Issue (NVV):

  • “Incorrect value type” error on notveryvanilla.com
  • Identified as caused by “Spider free SEO optimizer” app adding faulty code
  • Recommendation: Disable structured data in that app

Alternative Approaches:

  • Multiple users suggest using dedicated schema markup apps (JSON-LD, SA SEO JSON-LD Schema markup) instead of manual code editing
  • Apps can handle shipping methods and return policy structured data automatically
Summarized with AI on November 3. AI used: claude-sonnet-4-5-20250929.

On my site, these issues are accrued how to resolve them. site is about custom night guards.

You need to check you sections/main-product.liquid

Looks like it was modified and the comma is missing before “url”:

"offers": [{
            "@type" : "Offer","availability" : "http://schema.org/InStock",
            "price" : 149.0,
            "priceCurrency" : "USD",
              "priceValidUntil": "2024-12-31",
              "hasMerchantReturnPolicy": {
                            "value": true
                                        },
               "shippingDetails": {
                                "type": "FreeShipping",
                                "price": "0"
                                   }
            "url" : "https:\/\/shopkiry.com\/products\/custom-night-guards?variant=46911939936564"
          },

The original code is like this: https://github.com/Shopify/dawn/blob/c67c83387ba7b654e8f4cca683727d14c06b5c5c/sections/main-product.liquid#L739-L740

Personally, I don’t like messing around with Structured Data. I used to use an app called JSON-LD – took care of everything for me.

Hi!

You can add Shipping methods schema markup and Return Policy structure data effectively using the SA SEO JSON‑LD Schema markup app. If you have any questions, you can write to the app support and they will help you.

We started having a syntax error recently as well. We error we are getting is “incorrect value type”. Can someone recommend a fix. The website is notveryvanilla.com

Hello!

As I can see, the “Spider free SEO optimizer” app added the incorrect code. I recommend deactivating the structured data in this app and using another app to add a schema markup.

I am happy to help you set up SA SEO JSON‑LD Schema markup app settings if you would like.

Best Regards,
Sofiia