I am trying to pull data and display it from a rest API using C#. However I am having trouble looping through it and displaying each individual item I have tried code like so
private void ParseAndDisplay(JsonValue json)
{
JsonValue teamData = json["teams"];
TextView name = FindViewById<TextView>(Resource.Id.txtName);
foreach(var team in teamData)
{
name.Text = team["name"];
}
}
What is it I do differently? For now I am simply trying to loop through and display all the teams "name" in one text view.