Magento – Magento2 Uncaught SyntaxError: Unexpected token B in JSON at position 121

jsonmagento2product

Product detail page showing this error for some products

Uncaught SyntaxError: Unexpected token B in JSON at position 121<br>
   at JSON.parse (<anonymous>)
   at getData (main.js:58)
   at Array.map (<anonymous>)
   at HTMLDocument.apply (main.js:74)
   at fire (jquery.js:3232)
   at Object.fireWith [as resolveWith] (jquery.js:3362)
   at Function.ready (jquery.js:3582)
   at HTMLDocument.completed (jquery.js:3617)

Please help me to fix this….

Best Answer

So, since you did not specify the code, the error indicates that there are invalid tags in JSON, you need to look in JS for non-closed constructions.

Related Topic