Hi,
I have below json code and I want to know how can I get the count of the json's result, something like:
int total_found = data.Count;
Here is the code I am currently using:
var client = new HttpClient();
client.BaseAddress = new Uri("https://www.emiratesangels.org/api/generate_password_pin.php");
var content = new FormUrlEncodedContent(new[]
{
new KeyValuePair<string, string>("email", TextEmail.Text.Trim()),
});
var response = await client.PostAsync("https://www.emiratesangels.org/api/generate_password_pin.php", content);
var result = await response.Content.ReadAsStringAsync();
PINData data = JsonSerializer.Deserialize<PINData>(result);
Thanks,
Jassim