Shopify Liquid errors · Invalid JSON in schema
Fix “Invalid JSON in tag 'schema'” in a Shopify section
The JSON inside the section's schema block is not valid: a trailing comma after the last item, a missing quote or bracket, a comment, or two settings with the same id.
Liquid syntax error (sections/custom-banner line 120): Error in tag 'schema' - Invalid JSON
Paste your version of the error
The file, line, and name in your error are turned into exact steps.
How to fix it in Shopify
- In Shopify admin open Online Store, then Themes. On the theme that shows the error choose the three-dot menu, then Edit code. If that is your live theme, duplicate it first and fix the copy.
- Open the section file and scroll to the schema block at the bottom. Look near the line in the error.
- Remove any comma after the last item in a list or object, make sure every string is in double quotes, and remove comments.
- Check that every setting id and block type is unique within the schema.
- Save. If it still fails, paste the JSON between the schema tags into any JSON checker to find the exact character.
Fix it without touching your live theme
Add Shop Buddy to Claude or ChatGPT and paste the error there. It finds the line in your actual theme, makes the fix on a private copy, shows you before-and-after screenshots, and publishes only when you tap. Roll back with one tap.
Get startedQuestions
- The section disappeared from the theme editor.
- A section with invalid schema is hidden from the editor until the schema is valid again. Fixing the JSON brings it back with its settings intact.