Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
Hello community!
I'm looking for some help with an issue with unparsable structured data.
The product pages contain dimensions, and in the copy, double quotes are used as an abbreviation for inches. When the structured data is then generated, the double quotes are causing a problem with the markup: Missing ',' or '}' in object declaration::
Has anyone else come across this? Any ideas on a solution?
Thanks in advance!
Josh
Escape it for example "name": "Small 1/2\" " (add backslash before the quote).
@AscentMV2 wrote:Escape it for example "name": "Small 1/2\" " (add backslash before the quote).
Being that the structured data is auto-generated, how would I be able to build in this logic?
Use the liquid 'escape' string filter:
"name" : "{{ product.title | escape }}"
User | RANK |
---|---|
8 | |
4 | |
4 | |
3 | |
3 |