title: Using JSON with a web service on ServiceStack
body: <p>I am having a little difficulty in understanding how to use JSON with entity framework and web services (ServiceStack):</p>
  
  <p>Suppose I have one entity:</p>
  
  <pre><code>public class Report
  {
      public int IdReport {get;set;}
      public string Name {get;set;}
  }
  </code></pre>
  
  <p>So It's not recommended to send this object, since this object is from Model layer, and I am using ServiceStack which encourages the use of DTO. I will probably need two more classes:</p>
  
  <pre><code>public class ReportRequest
  {
      public idReport {get;set;}
  }
  
  public class ReportResponse
  {
      public string Name {get;set;}
  }
  </code></pre>
  
  <p>Is this correct? How can I use JSON to parse the values over HTTP. Suppose I need to send a report to be inserted into database, would I need one more object? Or Could I send a JSON formatted with the two properties <code>idReport</code> and <code>Name</code>?</p>