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.

Open Product Feed JSON Fixer

Common Shopify JSON errors

Fix in 3 steps

  1. Copy the broken JSON from the theme editor, export file, or API response.
  2. Paste into the product feed fixer → click Validate → read the line number → repair trailing commas, quotes, and brackets.
  3. 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.json and 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.