I have a api that return data in this format
{ "reult":
{ "70":
{
"type_id": 3,
"type": "forex",
"group_title": "forex",
"name": "EUR",
"title": "EUR"
},
"724":
{
"type_id": 5,
"type": "shares",
"group_title": "shares",
"name": "#ABT",
"title": "#ABT"
}
}
}
Now I want these key object pair data to a genuine C# object array. Like this
[
{
Id = 70
Type_id = 3,
Type = "forex",
Group_title = "forex",
Name = "EUR",
Title = "EUR"
},
{
Id = 724,
Type_id = 5,
Type = "shares",
Group_title = "shares",
Name = "#ABT",
Title = "#ABT"
}
]
Is it possible to do so? [I have Updated the api returned data. Because with this format it is easy to desterilize this data with c# Dictionary]