var str = '[' + '{id:123, content:"test"}' + ']'; var obj = eval(str)[0]; alert(obj.id);
var str = '{id:123, content:"test"}'; var obj = eval(str); alert(obj.id);
(Post a new comment)
(Reply to this) (Thread)
(Reply to this) (Parent)
(Reply to this) (Parent)(Thread)