While Developing features with Magento and javascript, sometimes you are facing an error in the browser console for the unexpected token defined in JSON and that will break your Magento functionality on that page.
This type of error we are facing is due to tiny mistakes in javascript JSON Declaration in our code.
This error is coming because our javascript snippet declaration using script text x-magento-init syntax has minor mistakes. Continue reading “How to resolved Uncaught SyntaxError: Unexpected token ‘ in JSON at position 159 in Magento?”