Shopify Product JSON Invalid — How to Fix It
Shopify says "Invalid JSON: unexpected token"?
Usually curly quotes, a trailing comma, or a missing bracket in product.json, theme schema, or a
feed export. Paste the block into a browser validator, read the error line, repair, then save back to Shopify.
This guide covers syntax-level JSON problems in Shopify product data — not Cloudflare 301/HTML responses, app OAuth, or server routing errors.
Common Shopify JSON errors
- Invalid JSON: unexpected token — often a trailing comma or smart quote in a string field
- settings_schema.json parse error when saving theme settings
- product.json or Admin API payload rejected after manual edit
- Metafield or variant array with an unclosed
{or[ - LLM-generated product JSON pasted into a theme or feed block
Fix in 3 steps
- Copy the broken JSON from the theme editor, export file, or API response.
- Paste into the product feed fixer → click Validate → read the line number → repair trailing commas, quotes, and brackets.
- Paste valid JSON back into Shopify and save or re-submit the feed sync.
FAQ
- What causes "Invalid JSON: unexpected token" in Shopify?
- Most often curly/smart quotes in titles or descriptions, a trailing comma after the last variant field, or a missing closing brace. The parser points near the first illegal character — fix that line first.
- Is it safe to paste product.json into an online tool?
- Our fixer runs entirely in your browser; nothing is uploaded. Still avoid pasting live API secrets — use a redacted copy if the payload includes tokens.
- Theme JSON vs catalog feed — same fix?
-
Same JSON rules. Theme
settings_schema.jsonand Merchant Center product feeds both fail on trailing commas and bad quotes. Server/HTML errors need a different fix (check URL and response type).
Related: Product feed JSON errors · Fix LLM JSON · JSON lint tool
We may earn from qualifying links. Tools run in your browser; we don't store your feed.