Created
January 21, 2013 02:40
-
-
Save jayhjkwon/4583278 to your computer and use it in GitHub Desktop.
Resolve self referencing loop detected error in ASP.NET WebAPI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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