Need help to extract the data from JSON file

Hi,

Can anyone help me to extract the description from below json format data.

{
“statusDetails”: {
“success”: false,
“statusCode”: “100”,
“messages”: [
{
“type”: “ERROR”,
“code”: “3456”,
“description”: “Invalid Routing Number”
}
]
},
“validationResponse”: {
“endToEndId”: “234567”,
“paymentId”:
}
}

it was necessairy to fix your xaml as by following, due value was missing

grafik

grafik
Messages Value is a JArray and we feched from first item the description

For the case that there are more description properties are within the message items and not present at other JObjects then we can use following statement to get all descriptions:

grafik

Hi Peter,

Thanks for all your help. I don’t know why I am bad at this. This is the last one. Can you help me to extract the aaTChekResponse from below json format

{
“statusDetails”: {
“success”: true,
“statusCode”: “000”
},
“validationResponse”: {
“aaTChekResponse”: “56789”,
“endToEndId”: “56”,
“paymentId”: [
“49688076”
]
},
“hpDebitAction”: true
}

Lets scope 1 Topic = 1 Case only.

When the given answer was working for the origin topic then mark the solving answer as the solution. For the new question create a new topic, please. Thanks

Sure, Thanks!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.