Unable to find a constructor to use for type Common.Model.Child. A class should either have a default constructor, one constructor with arguments or a constructor marked with the JsonConstructor attribute. Path 'data.investorList[1].children[0].isGenerate', line 277, position 26.
Newtonsoft.Json
public class Root
{
/// <summary>
///
/// </summary>
public string code { get; set; }
/// <summary>
///
/// </summary>
public Data data { get; set; }
/// <summary>
/// 操作成功!
/// </summary>
public string message { get; set; }
/// <summary>
///
/// </summary>
public string success { get; set; }
public Root()
{}
}
public Root()
{} 是关键
var info = (JObject)JsonConvert.DeserializeObject(handle);