items not an int he JSON array, this is an object:
"items": { "item1": { "property1": 1, "property2": "test", "property3": 4.3 }, "item2": { "property1": 5, "property2": "test2", "property3": 7.8 } }
Therefore, it will not be deserialized into the collection:
public List<Item> items { get; set; }
Instead, create a type for it:
public class Items { public Item item1 { get; set; } public Item item2 { get; set; } }
And use this in the parent object:
public class Response { public int success { get; set; } public string message { get; set; } public int current_time { get; set; } public Items items { get; set; } }
David source share