Avoiding Circular Reference for Entity in JSON Serialization

added by gilf
10/17/2011 4:19:23 AM

274 Views

One problem that I was facing yesterday while working on an ASP.NET MVC application was a JSON serialization issue. The problem was a circular reference caused by the DataContractJsonSerializer because of relations between the entity and other entities. In this post I’ll show you how you can use a simple workaround in order to avoid the problem.


1 comments

vijayst
10/20/2011 9:08:20 PM
Good article. It is not very obvious to developers who are new to EFCF what really caused the circular reference.