So I\'m playing around with Web API in ASP.NET 5. At some point my app stopped working, only showing \"Bad Gateway\" IIS error page (I run it in IIS Express, by F5). It took
For ASP.NET Core:
var mvc = services.AddMvc(options => { //mvc options }); mvc.AddJsonOptions(options => { options.SerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore; });