I have JSON that looks like this (from the Philips HUE API):
{
"1": {"name": "Bedroom"},
"2": {"name": "Kitchen"}
}
When I try to deserialize this document I run into problems because the document is structured the way it is.
If it had been formated like this:
[
{"nr": "1", "name": "Bedroom"},
{"nr": "2", "name": "Kitchen"}
]
Everything would have been fine. Now I am forced to do string parsing in order to extract the data... :-(
Any ideas or suggestions?