I can't find any solution for my case.I recieve JSON and then I parsed it to my class Instance.In the instance I have property object Model that must be maped from JSON object model.All is good but in this model I don't know how many and which property I can recieve. I want to iterate all props in model and check theirs type.I need this because I want to generate EditForm from model properties.I was tried with
foreach(PropertyInfo prop in Model.GetType().GetProperties())
but it looks the model is type of NewtonSoft.Json.Linq.JObject.
class Instance
{
public object Model { get; set; }
public List<Label> Labels { get; set; }
public List<Instance> Children { get; set; }
}