title: C# return a parent child JSON object from the asp.net web api?
body: <p>this is related to a post I made yesterday, but havent been able to resolve: <a href="https://stackoverflow.com/questions/10897523/asp-net-web-api-showing-correctly-in-vs-but-giving-http500">ASP.Net Web API showing correctly in VS but giving HTTP500</a></p>
  
  <p>I think I need to simplify what I'm trying to do, and work up from there.</p>
  
  <p>Can anyone please point me to an example of using the asp.net Web API (I'm using VS 2012 Express RC), to return JSON from a parent/child model?</p>
  
  <p>eg: (pseudo Json):</p>
  
  <pre><code>Parent: Mark
  ..Child: Tom
  ..Child: Adam
  ..Child: Becki
  
  Parent: Terry
  ..Child: Sophie
  ..Child: robert
  </code></pre>
  
  <p>I can get it to return data from one table, but not from a linked table.</p>
  
  <p>Thanks for any help,</p>
  
  <p>Mark</p>