Skip to content

Instantly share code, notes, and snippets.

@jayhjkwon
Created January 21, 2013 02:40
Show Gist options
  • Save jayhjkwon/4583278 to your computer and use it in GitHub Desktop.
Save jayhjkwon/4583278 to your computer and use it in GitHub Desktop.
Resolve self referencing loop detected error in ASP.NET WebAPI
public class JsonConfig
{
public static void RegisterConfig(HttpConfiguration config)
{
var json = config.Formatters.JsonFormatter;
json.SerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment