title: How to bind JSON response from httpClient.PostAsJsonAsync
body: <p>I can httpClient.PostAsJsonAsync(path, content) fine.</p>
  
  <p>However, this post returns some JSON with details of the response, eg:
  {"StatusCode":200,"AccessCode":"92BEEB285ZB47DA","InternalMessage":null}</p>
  
  <p>I need to access the AccessCode.</p>
  
  <p>How can I do this cleanly and efficiently? Can I create an object like this:</p>
  
  <pre><code>public class GIResponse
  {
      public string StatusCode { get; set; }
      public string AccessCode { get; set; }
      public string InternalMessage { get; set; }
  }
  </code></pre>
  
  <p>And map it to the result?</p>
  
  <p>Or how would I just traverse the JSON and pull out the AccessCode?</p>
  
  <p>I have searched quite extensively but surprisingly I can't find anything on Google - perhaps as this is the result from a Post, not a Get.</p>
  
  <p>How can I do this?</p>