Preparing Class in progress...
For example, if you have the following JSON object:
{ "name": "John", "age": 30 }
public class Person { public string Name { get; set; } public int Age { get; set; } }
string json = "{\"name\": \"John\", \"age\": 30}"; Person person = JsonConvert.DeserializeObjectMake sure to include the Newtonsoft.Json NuGet package in your project for this to work.(json);