A:
You can do this by using this code:
try {
//Instantiate the Uri class
var uri = new Uri("");
//Get the JSON contents of the reddit user
var content = uri.Content.ReadAsStringAsync().Result;
//Create a JsonTextReader using the JSON content
JsonTextReader jsonReader = new JsonTextReader(new StringReader(content));
//Load the reddit user data into an anonymous type
var jsonData = JsonConvert.DeserializeAnonymousType(jsonReader, new { Id = "userId", ac619d1d87
Related links:
Comments