title: C++ convert json to object
body: <p>I'm downloading json from my server. Object that I'm sending from server is C# object and looks like this:</p>
  
  <pre><code>public class User
  {
      public string UserName { get; set; }
      public string Info { get; set; }
  }
  </code></pre>
  
  <p>Now, I have to get this data in my C++ app. I use <a href="https://github.com/Microsoft/cpprestsdk" rel="nofollow noreferrer">this library</a> for it.</p>
  
  <p>Object that I've got from server is of the type: <code>web::json::value</code></p>
  
  <p>How can I get UserName from this <code>web::json::value</code>?</p>