title: How to deserialize JSON data in MVC
body: <p>I'm new to deserializing JSON data
  I'm getting follwing JSON data from responsebody of a service</p>
  
  <pre><code>"{\"Table\":[{\"SessionID\":\"DADF8335-31D3-401A-822F-6FCBF429DFC5\",\"Data\":\"80110144\",\"Expiration\":\"2016-08-25T21:22:51.683\"}]}"
  </code></pre>
  
  <p>When I try to deserialize and pass it to a variable it is showing null data.</p>
  
  <p>This is my code in the controller and this is the variable '<strong>ServiceInfo</strong>' getting null data</p>
  
  <p><a href="http://i.stack.imgur.com/Np4Wb.png" rel="nofollow">null data image</a></p>
  
  <pre><code>using (var client = new HttpClient())
              {
                  client.BaseAddress = new Uri("https://sample.com");
                  client.DefaultRequestHeaders.Accept.Clear();
                  client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
                  HttpResponseMessage response = await client.GetAsync("SessionAPI/api/SessionMgmt/UseSession?SessionID=" + SessionID);
  
                  if (response.IsSuccessStatusCode)
                  {
                      string responseBody = await response.Content.ReadAsStringAsync();
                      SessionStoreID ServiceInfo = JsonConvert.DeserializeObject&lt;SessionStoreID&gt;(responseBody);
  
                      Response.Write(ServiceInfo.Data);
                  }
              }
  </code></pre>
  
  <p>and this is my propery class</p>
  
  <pre><code>public class SessionStoreID
      {
          public string Session { get; set; }
          public string Data { get; set; }
          public DateTime ExpiredDate { get; set; }
      }
  </code></pre>
  
  <p>Can some one guide on how to solve this</p>