I have this simplified JSON array of objects being returned but the issue is the ID (13294 and 13350) is being treated as a type and is failing to deseialize.
Here is what I am using:
JsonConvert.DeserializeObject<List<JsonResultCustom>>(rawjson);
public class JsonResultCustom
{
public string blurb { get; set; }
public SplashImage splash_image { get; set; }
public string title { get; set; }
public string permalink { get; set; }
}
And the JSON:
{
"13294": {
"blurb": "Proin tellus enim, mollis id facilisis",
"splash_image": {//CUSTOM OBJECT},
"title": "MPC EXAMPLE with Video",
"permalink": "https://www.test.com/"
},
"13350": {
"blurb": "Soufflé cotton candy",
"splash_image": {//CUSTOM OBJECT},
"title": "MPC SAMPLE: Berry",
"permalink": "https://www.test.com/blog/"
}
}