I am using EF 4 to retrieve a list of Employees.
public ContentResult AutoCompleteResult(string searchText)
{
List list = Employee.GetAll
You could turn off lazy loading to resolve this problem.
Inside your 'using' block, try this:
yourObjectContext.ContextOptions.LazyLoadingEnabled = false;
After doing this, I was able to serialize my EF (DbContext-generated) POCO to JSON without any issue.
*Note: Since I've turned off lazy loading... I explicitly pull in related objects I need ahead of time (mostly with .Include() in my query) before the object is serialized to JSON.