title: RestSharp JSON serialization
body: <p>I am building .net client REST application using RestSharp and I need to post some data to the server using JSON format (the server app can only accept JSON). The JSON format is as below: </p>
  
  <p><code>{
      "username": "username",
      "address": {
          "address1": "address1",
          "address2": "address2",
          "town": "Town",
          "county": "County",
          "postCode": "postcode",
          "country": "United Kingdom"
      }
      ,
      "contact": {
          "telephone": "1234",
          "fax": "12345",
          "email": "testemail@test.co.uk"<br>
       } 
  }</code></p>
  
  <p>I need to add the data above as parameters to the request object like below: </p>
  
  <p><code>request.AddBody(new { username = "username" });</code></p>
  
  <p>The line above will use JSON serializer to create a JSON string and it works fine but I am not sure how to create next levels (address, contact)... All address details and contact details need be embedded in the address and contact elements. Any advice?</p>