hi i'm getting the json format like this
{
"communication": [{
"communication_name": "None",
"communication_id": "1"
}],
"hardware": [{
"hardware_name": "XXXXXXXX",
"hardware_id": "6"
}],
"Sofware": [{
"software_name": "XXXXXX",
"software_id": "3"
}, {
"software_name": "XXXXXXXXXXXXX",
"software_id": "4"
}]
}
but while i'm doing alert of this response in ajax it showing as [object Object] the ajax code is like this
if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
var model_result = JSON.parse(xmlHttp.responseText)
alert('' + model_result);
}
I have tried both JSON.parse and eval.