I have a JSON array that is converted from XML and i'd like to know how I can get parts of that JSON.
From another answer i've found
var result =
JObject.Parse(jsonResult).Children().Children().Children().ElementAt(1).Children().First();
but that just gets me one part of the JSON and isn't very easy to figure out how to then get other parts.
This is the part I get from the code above
http://www.w3.org/2001/XMLSchema-instance
This is the JSON
{
"soap12:Envelope": {
"@xmlns:soap12": "http://www.w3.org/2003/05/soap-envelope",
"@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
"@xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
"soap12:Body": {
"ProcessRequestResponse": {
"@xmlns": "http://localhost/TestServices",
"ProcessRequestResult": {
"StatusCode": "None or GE or PE or PW or NP or FS or NA or GF",
"Success": "boolean",
"Errors": {
"Error": [
{
"Code": "int",
"ErrorText": "string",
"ErrorType": "None or Critical or Non_Critical",
"Severity": "Warning or Error"
},
{
"Code": "int",
"ErrorText": "string",
"ErrorType": "None or Critical or Non_Critical",
"Severity": "Warning or Error"
}
]
}
}
}
}
}
}
I would like to be able to get "StatusCode" or "Success" or anything in the array.