I have to parse a Web API in the following format. Please be aware that I cannot change the format of the JSON. It will always come in in this format:
{
"somethingone": "abc",
"somethingtwo": "abcde-1234",
"information": {
"report": [{
"a": "1",
"b": "2",
"c": "3"
},
{
"a1": "1a",
"b2": "2a",
"c3": "3a"
}, {
"a1": "1b",
"b2": "2b",
"c3": "3b"
},
]
}
}
When I try to parse it in Newtonsoft, I get the following error message:
Cannot deserialize the current json object because(e.g.{"name":"value"}) into type because the type requires a json array (e.g.[1,2,3]) to deserialize correctly.
I have been trying to solve this issue for days, but cannot figure this out.