Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I recently updated our structured data for our products to include price and fix an error. An example which is showing an error looks like this:
<script type="application/ld+json">// <![CDATA[
{
"@context": "http://schema.org/",
"@type":"Product",
"name":"Ashwagandha Extract Capsules - 600 mg",
"image": [ "https://cdn.shopify.com/s/files/1/0047/1524/9737/files/Illuminate_Labs_Ashwagandha_Image_Final.jpg?v..."
],
"url":"https://illuminatelabs.org/products/ashwagandha-extract",
"offers": {
"@type":"Offer",
"availability":"OutOfStock",
"price": "40.00",
"priceCurrency": "USD"
},
}
// ]]></script>
The error states: Parsing error: Missing '}' or object member name
I don't see a missing '}' or object member name here. What am I missing?
Remove the last comma, then it at least detects the product:
But there are still a number of warnings.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025