SyntaxFix
Write A Post
Hire A Developer
Questions
This simple way...
var string = "{firstName:'name1', lastName:'last1'}"; eval('var obj='+string); alert(obj.firstName);
output
name1