Parsing JSON object in JQuery
Posted
by koby
on Stack Overflow
See other posts from Stack Overflow
or by koby
Published on 2010-02-01T15:22:39Z
Indexed on
2010/03/18
16:51 UTC
Read the original article
Hit count: 289
Hi, I have simple JSON object returned in form
{"d":"{\"Name\":\"DMX100\",\"Description\":\"blah blah\",\"ID\":\" 780\",\"Make\":\"2010\"}"}
How do I parse it in success.
success: function(msg)
{
$('#something').html(msg.d.Name);
}
Above code doesnt display Name but when I pass $('#something').html(msg.d);
it shows complete Json string. How do I reach to individual properties
Thanks
© Stack Overflow or respective owner