title: Web Api (MVC 6) Chunked body did not terminate properly with 0-sized chunk
body: <p>I am using MVC 6 rc1 with EF 7 rc 1 Code First Model to retrieve data over web api controller.
  I have 3 tables similar to below.</p>
  
  <pre><code>class Product
  {
      public int Id { get; set; }
      public string SomeProperty { get; set; }
      public virtual ICollection&lt;Categorization&gt; Categorizations { get; set; }
      public DateTime SomeProperty2 { get; set; }
      public string SomeProperty3 { get; set; }
      public string SomeProperty4 { get; set; }
  
  }
  
  // NOTE: Entity key should be (ProductId, CategoryId)
  class Categorization
  {
      public int ProductId { get; set; }
      public Product Product { get; set; }
  
      public int CategoryId { get; set; }
      public Category Category { get; set; }
  }
  
  class Category
  {
      public int Id { get; set; }
      public ICollection&lt;Categorization&gt; Categorizations { get; set; }
  }
  </code></pre>
  
  <p>My Controller:</p>
  
  <pre><code>[ActionName("searchProducts")]
          public IEnumerable&lt;Product&gt; searchProducts(string searchText,int? id)
          {
            var ret= db.Products
                  .Include(s =&gt; s.Categorizations).Take(2).ToList();
            return ret;
          }
  </code></pre>
  
  <p>Below is my Startup.cs ConfigureServices section.</p>
  
  <pre><code>          services.AddMvc()
                  .AddJsonOptions(options=&gt;
                  {
                      options.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver();
                      options.SerializerSettings.MissingMemberHandling = Newtonsoft.Json.MissingMemberHandling.Ignore;
                  });
              services.AddCors();
  
              var connectionString = Configuration.GetSection("Data:DefaultConnection:ConnectionString").Value;
  
              services.AddEntityFramework()
                  .AddSqlServer()
                  .AddDbContext&lt;ContractsContext&gt;(options =&gt; options.UseSqlServer(connectionString));
  
  
              services.AddSingleton(_ =&gt; Configuration);
              services.AddSingleton&lt;IContractRepository, ContractRepository&gt;();
  </code></pre>
  
  <p>When I call the api, I get the error as "Chunked body did not terminate properly with 0-sized chunk" in Fiddler. In fiddler resultset, I see only the first object of expected result set with properties until Categorizations filled and NO properties and remaining objects after that (Incomplete JSON data). If I do not include Categorizations in the result set, it works perfectly fine. Am I missing something?
  Note: EF is returning data correctly but it's getting chunked in the api call and client is unable to read the data in complete.</p>