I’ve been designing my MVC apps using custom ObjectContext’s and POCO style classes.
So, to my surprise, when serializing a lazy loaded POCO class to a JsonResult, I stumbled onto this.
“A circular reference was detected while serializing an object of type…”
One potential way to get around this, set the following in your custom ObjectContext
this.ContextOptions.ProxyCreationEnabled = false;