Looking to transform the Unicode string below into a JSON Object.
var str = '{"method_title":"Bank. Transfer","instructions":"Account Name: Sriram Me Co.,Ltd.\r\n----------------------------------------------\r\n- Furnin Commercial Bank\r\nAccount: 111-111-111\r\n----------------------------------------------\r\n- LIKSA Bank\r\nAccount: 111-111-111r\n----------------------------------------------\r\n\r\nAfter you have made bank transfer, please kindly visit \"PAYMENT\" to submit your payment detail."}';
This was my approach:
var myEscapedJSONString = decodeURIComponent(str);
console.log(JSON.parse(myEscapedJSONString));
The error I encountered is:
Uncaught SyntaxError: Unexpected token in JSON at position 82