services.AddControllersWithViews() .AddNewtonsoftJson(options => options.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore );
public class Employee
{
...
[System.Text.Json.Serialization.JsonIgnore]
public virtual Order Order { get; set; }
}
public class Order
{
...
[System.Text.Json.Serialization.JsonIgnore]
public virtual Employee Emp { get; set; }
}
|
This still seems to be an issue to people who don't want to decorate their models, I would recommend to the syncfusion team to allow JsonSerializerOptions to be modified before use, so we choose how our data gets serialized.
Hi Pol,
We are currently Validating the reported query at our end and we will update the further details shortly. Until then we appreciate your patience.
Regards,
Naveen Palanivel
Hi PoL,
We have analyzed your query, Currently we don't have support for without decorate their models to allow JsonSerializerOptions
Please let us know if you have any concerns.
Regards,
Naveen Palanivel