Base solution for your next web application
Open Closed

Where do I override the json serialization settings? #999


User avatar
0
janraets created

I need to change the following the referenceLoopHandling on my json serialization, yet I cannot find where to change this.

Can anyone help?

GlobalConfiguration.Configuration.Formatters.JsonFormatter.SerializerSettings.Re‌ferenceLoopHandling = ReferenceLoopHandling.Serialize;

1 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Write this code in Initialize method of your web module.