How to analyze json data in jquery ajax success?

advertisements
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?


May be you are looking for jquery parse json, if I understand the question properly.