I have json object returned from another application, that i have no control over it and the structure of each object is different ,but i want to extract the same data from each object with its title (I am using NewtownSoft):
{
"myData": [
{
"one": {
"in": 0,
"out": 17,
"total": 17
},
"two": {
"total": 17
},
"three": {
"total": 0
},
"four": {
"total": 8
},
"five": {
"total": 0
},
"six": {
"total": 0
},
"seven": {
"total": 0
}
} ]}
i want the result to be as in this image
and deserialize this code using only one class
public class Example{
public string number {get;set;}
public int total {get; set;}
}