So i have a json response as following:
I am trying to parse the following json response from an api. But it has a structure i do not have control over.
{
"news3962": {},
"news3961": {},
"news3960": {},
"news3959": {},
"news3958": {},
"news3951": {},
"news3950": {},
"news3948": {},
"news3943": {},
"news3947": {}
}
All the news items contain the same structure. How will i parse this response so that i return an array containing NewsItems?
Normally the response should be an array with anonoymous objects but this is not the case
Any help is greatly appreciated.