JSON.parse Error on Collections page

I made a change to the collections-theme.liquid code which did not work so I reverted to the previously saved version. Ever since I’ve been getting the following error which prevents the Product grid from loading on any of the Collections pages. I’m hoping someone here can help.

Sample page: https://shop.theclassicoutfitter.com/collections/accessories

Error:

VM1649:2 Uncaught SyntaxError: Expected property name or ‘}’ in JSON at position 6 (line 2 column 5)
at JSON.parse ()
at new e (theme.min.js?v=3211174084529572291611554596:3:10849)
at e.value (theme.min.js?v=3211174084529572291611554596:4:24379)
at theme.min.js?v=3211174084529572291611554596:4:22797
at Array.forEach ()
at e.value (theme.min.js?v=3211174084529572291611554596:4:22775)
at theme.min.js?v=3211174084529572291611554596:5:9450
at Object. (theme.min.js?v=3211174084529572291611554596:5:11988)
at t (theme.min.js?v=3211174084529572291611554596:1:603)
at Object. (theme.min.js?v=3211174084529572291611554596:5:8276)
e [email removed] theme.min.js?v=3211174084529572291611554596:3
value [email removed] theme.min.js?v=3211174084529572291611554596:4
(anonymous) [email removed] theme.min.js?v=3211174084529572291611554596:4
value [email removed] theme.min.js?v=3211174084529572291611554596:4
(anonymous) [email removed] theme.min.js?v=3211174084529572291611554596:5
(anonymous) [email removed] theme.min.js?v=3211174084529572291611554596:5
t [email removed] theme.min.js?v=3211174084529572291611554596:1
(anonymous) [email removed] theme.min.js?v=3211174084529572291611554596:5
t [email removed] theme.min.js?v=3211174084529572291611554596:1
(anonymous) [email removed] theme.min.js?v=3211174084529572291611554596:1
(anonymous) [email removed] theme.min.js?v=3211174084529572291611554596:1

You need to go to your collection template section, find this code:


and ensure that data-section-settings="{{ ... }}" uses apostrophes rather than quotes.

Thanks so much Tim. It took me a while to fix it until I turned off the Auto Format on Save! Then your solution worked a treat. :folded_hands:

AI is not quite I ? :slightly_smiling_face:

Probably it was the reason for the problem in the first place…