title: How to use json.net to Deserialize a nested class?
body: <p>I have the following class</p>
  
  <pre><code> public class CallbackResultsJson
      {
      public class CallbackResults
      {
  
          public string Status { get; set; }
          public string Message { get; set; }
          public string Data { get; set; }
          public string Log { get; set; }
          public string StatusText { get; set; }
          public string TransactionToken { get; set; }
      }
  }
  </code></pre>
  
  <p>I am trying to use Json.Net to Deserialize requestbody but I am always getting a null for status,data. <strong>any ideas why ?</strong> </p>
  
  <pre><code>var requestbody =@"
  {
      "CallbackResults":
      {
          "TransactionToken":"b65524-qwe",
          "Status":0,
          "Message":"Publish Application to QaLevel Operation Completed",
          "Data":[],
          "Log":["sucess"
      },
      "RequestNumber":"REQ1234"
  }"
  
  var TransactionResult = JsonConvert.DeserializeObject&lt;CallbackResultsJson.CallbackResults&gt;(requestBody);
  </code></pre>