Google returning a 'Parsing error: Missing '}' or object member name'

Google is telling me I have a ‘Parsing error: Missing ‘}’ or object member name’.

After reading various other posts, I believe this has something to do with:

{%- if product.metafields.spr.reviews -%}
,“aggregateRating”: {
@type”: “AggregateRating”,
“ratingValue”: {{ product.metafields.spr.reviews | split: ‘ratingValue" content="’ | last | split: ‘"’ | first | plus: 0 }},
“ratingCount”: {{ product.metafields.spr.reviews | split: ‘reviewCount" content="’ | last | split: ‘"’ | first | plus: 0 }}

However, I tried moving this between (the below) and asked Google to ‘VALIDATE FIX’, however Google just came back with the same (I made the fit left it about 10 mins and then validated).

…HERE…

{% endif %}

If anyone can shed any light on this (or help) I would be extremely grateful!

I am using the ‘Mr Parker 8.xx’ theme.

See below the info in my ‘structured-data.liquid’:

{% if template contains ‘index’ %}

{% elsif template contains ‘article’ %}

{% elsif template contains ‘product’ %}

{% endif %}