How to parse json data in jquery ajax success?
Posted
by
samarh.k
on Stack Overflow
See other posts from Stack Overflow
or by samarh.k
Published on 2010-12-24T04:28:57Z
Indexed on
2010/12/24
4:54 UTC
Read the original article
Hit count: 177
info = {'phone_number': '123456', 'personal_detail': {'foo':foo, 'bar':bar}, 'is_active': 1, 'document_detail': {'baz':baz, 'saz':saz}, 'is_admin': 1, 'email': '[email protected]'}
return HttpResponse(simplejson.dumps({'success':'True', 'result':info}), mimetype='application/javascript')
if(data["success"] === "True") {
alert(data[**here I want to display personal_detail and document_details**]);
}
How can I do this?
© Stack Overflow or respective owner