页面单独指定不循环引用

 [JsonIgnore]
    Newtonsoft.Json.JsonSerializerSettings jsSettings = new Newtonsoft.Json.JsonSerializerSettings();
    jsSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore;
    string json = Newtonsoft.Json.JsonConvert.SerializeObject(GF_OrdersList, Newtonsoft.Json.Formatting.None, jsSettings);

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-05
猜你喜欢
  • 2022-12-23
  • 2022-01-01
  • 2021-06-15
  • 2022-12-23
  • 2022-02-28
  • 2021-09-21
相关资源
相似解决方案