I am trying this to get json object but it does not seem to work
$.post("/csm/compare.action",
{
sessiontoken: sessiontoken,
compareCategory: "system",
compareSubCategory:"patch",
xml1:absP[0],
xml2:absP[1]},
function(data)
{
alert(data.response[0].elementName);
}
);
Part of my json that gets returned
{
"response": [
{
"id": "0",
"elementName": "Accounting.ACCT-ENG-A-MAN",
"subCategory": "patch",
"isEqual": false,
"isPrasentinXml1": true,
"isPrasentinXml2": true,
"attribute": [
{
"name": "information",
"firstValue": "Acco",
"secondValue": "Acco"
},
{
"name": "name",
"firstValue": "Accounting.ACCT-ENG-A-MAN",
"secondValue": "Accounting.ACCT-ENG-A-MAN"
},
{
"name": "version",
"firstValue": "B.11.23",
"secondValue": "B.11.23"
}
]
}
]
}
try