Already checked this post but that did not solve my situation : Parsing a JSON array using Json.Net
I have a API response which returns me a JSON array, like the following :
{
"status": {
"code": "200",
"description": "OK"
},
"response": [{
"weId": "1",
"weName": "env1"
},{
"weId": "2",
"weName": "env2"
},{
"weId": "3",
"weName": "env3"
}]
}
Here's my question :
This array might return more than 2 values.
What i mean is like this :
{
"response": [{
"weId": "1",
"weName": "env1",
"otherAttribute1": "otherValue1",
"otherAttribute2": "otherValue2",
"otherAttribute3": "otherValue3"
}]
}
How am I able to dynamically parse a JSON array, which has an unknown dimension ?
Thanks in advance.