I am trying to deserialize a Json response from an API. The data looks like this.
{
"api": {
"results": 1,
"aaa": [
[
{
"bbb": 1,
"ccc": 85,
"ddd": "this is test1",
"eee": "this is test2",
"fff": "orang",
"ggg": "apple",
"hhh": "this is test3",
"iii": {
"iia": 35,
"iib": 27,
"iic": 4
},
"jjj": {
"jja": 18,
"jjb": 16,
"jjc": 2
},
"kkk": {
"kka": 17,
"kkb": 11,
"kkc": 2,
},
"lll": 67,
"mmm": 85,
"nnn": "2019-05-04"
}
]
]
}
}
and, for more information about Json schema for this case is
{
"type": "object",
"properties": {
"api": {
"type": "object",
"properties": {
"results": {
"type": "integer"
},
"aaa": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "object"
}
}
}
}
}
}
}
and i have create a custom class to read the json content http://json2csharp.com/ :
public class Api
{
public int results { get; set; }
public List<List<>> aaa { get; set; }
}
public class RootObject
{
public Api api { get; set; }
}
what is correct class for this json? What should I do to correct this?