I need assistance with setting up a model and collection for a URL that returns a list of players in JSON format:
http://anexampleproject/api/players
My goal is to create a model and collection for this data and then display the name of each player in the console. Can someone guide me on how to achieve this?
Here is an example of the JSON returned by the URL:
[
{
"id": 1,
"name": "Lily",
"age": 14,
"city": "New York"
},
{
"id": 2,
"name": "BIlly",
"age": 14,
"city": "New York"
}
]