title: Json Deserialize C# Class
body: <p>Im new to Json and so i need your help to deserialize something.
  I have a httpclient sending a webrequest:</p>
  
  <pre><code>  HttpClient http = new HttpClient();
              HttpResponseMessage response = await http.GetAsync(JsonBaseuri + IDInput.Text.ToString());
              response.EnsureSuccessStatusCode();
              string content = await response.Content.ReadAsStringAsync();
              InventoryJsonData.RootObject root1 = new InventoryJsonData.RootObject();
              root1 = JsonConvert.DeserializeObject&lt;InventoryJsonData.RootObject&gt;(content);
  </code></pre>
  
  <p>The RootClass is defined as:</p>
  
  <pre><code>class InventoryJsonData
  {
      public class RootObject
      {
          public bool Success { get; set; }
          public object Error { get; set; }
          public double Price { get; set; }
          public string Username { get; set; }
  
      }
  }
  </code></pre>
  
  <p>I get an error and i dont know if my code is right for what i want to do. I want to get a root1 object with the Attributes from the Json data from the webrequest. What did i do wrong? </p>