SyntaxFix
Write A Post
Hire A Developer
Questions
if you're using JQuery:
var obj = jQuery.parseJSON('{"path":"/img/filename.jpg"}'); console.log(obj.path); // will print /img/filename.jpg
REMEMBER: eval is evil! :D