title: Converting Entity Framework object to JSON (without object graph)
body: <p>Suppose I have a object structure like this </p>
  
  <pre><code>Library 1 ---- 1+ Book 1 ---- 1+ Page
  </code></pre>
  
  <p>I want to serialize a json object of a book with an array of page objects.</p>
  
  <p>Using JSON.net serializer, I can get this to serialize without getting a circular reference, but the JSON still includes all of the properties of the book in each page, which includes data about the library...which can have data on other books which is a ton of noise.</p>
  
  <p>From the answer from this question - <a href="https://stackoverflow.com/questions/657939/serialize-entity-framework-objects-into-json">Serialize Entity Framework objects into JSON</a>, I know that I can do generics, but is this really the only way? This just seems like a ton of extra work. Especially if for a Json result that is Book with and array of page objects in it.</p>
  
  <p>I am using Entity Framework 4.3.1 and Json.net 4.0.30319...</p>