SyntaxFix
Write A Post
Hire A Developer
Questions
var str = "{'a':1}"; str = str.replace(/'/g, '"') obj = JSON.parse(str); console.log(obj);
This solved the problem for me.