title: Getting an OutOfMemoryException while serialising to JSON?
body: <p>I am serializing , a <code>MultiDictionary&lt;String,Object&gt;</code></p>
  
  <p><a href="http://powercollections.codeplex.com/" rel="noreferrer">http://powercollections.codeplex.com/ to json .</a></p>
  
  <p>It has 618 elements with elements being deeply nested ,i.e. a single Object may have several dictionary like objects in it . I am using JSON.Net</p>
  
  <pre><code>String json = JsonConvert.SerializeObject(json, Newtonsoft.Json.Formatting.Indented);
  </code></pre>
  
  <p>what am i missing ? </p>
  
  <p>MORE INFO: - 
  This was working fine till i was using dynamic , i had to switch to MultiDictionary to allow multiple properties of the same name . It works for most cases , only when the number of items is large , it breaks . </p>
  
  <p>UPDATE: - </p>
  
  <p>I have been able to get a hold of the Memory consumption but cutting down on some elements that were getting added recursively to each element.  </p>