After making a POST request using AJAX I get the following JSON response:
{
"ServiceName": "ABC",
"Response": {
"Object": [
{
"Attributes": {
"Attribute": [
{
"AttributeName": "Name",
"AttributeValue": "XYZ"
},
{
"AttributeName": "Place",
"AttributeValue": "Abc"
},
{
"AttributeName": "Country",
"AttributeValue": "Americas"
},
{
"AttributeName": "Code",
"AttributeValue": "576"
}
]
}
},
{
"Attributes": {
"Attribute": [
{
"AttributeName": "Name",
"AttributeValue": "XYZHJ"
},
{
"AttributeName": "Place",
"AttributeValue": "Abchgh"
},
{
"AttributeName": "Country",
"AttributeValue": "India"
},
{
"AttributeName": "Code",
"AttributeValue": "536"
}
]
}
}
]
}}
I am using datatable to display the data.. but with this nested JSON I am not able to go straight for the data. I am using this https://datatables.net/examples/server_side/post.html https://datatables.net/reference/option/ajax.dataSrc for reference.