Hi follow up question regarding to No data displayed only brackets in web API C#
When I declare
public ChartType[] chart_type { get; set; }
it doesn't display any data
but when I used
public string chart_type { get; set; }
it will display all 5 rows.
because I can't continue to another object
public partial class ChartType
{
[JsonProperty("name", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public string entity_name { get; set; }
[JsonProperty("display_name", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public string entity_display_name { get; set; }
[JsonProperty("kpi", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public Kpi[] Kpi { get; set; }
}
and so on.....
I'm currently using complex JSON structure for my web API, hope someone helps.