I made a little example:
public class Test
{
[JsonProperty(PropertyName = "test1")]
public String Test1 { get; set; }
[JsonProperty(PropertyName = "test2")]
public String Test2 { get; set; }
}
private string url = "http://sample.php";
private List<Test> TestList = new List<Test>();
private async Task<Test> getTestObjects()
{
var httpClient = new HttpClient();
var response = await httpClient.GetAsync(url);
}
How do I get the Test objects from the url link into the TestList? Is it the same as reading XML?