I have an API and whenever I hit it I get the following response:
{
"current_points": 2300,
"tasks": [
{ "title": "Fire a player", "points": 200, "completed": true },
{ "title": "Buy a player", "points": 200, "completed": true },
{ "title": "Press conference", "points": 1000, "completed": false },
{ "title": "Set lineup", "points": 500, "completed": false },
{ "title": "Win a match", "points": 200, "completed": false }
]
}
Now I want to break up this data and use it to update my UI in my "game over" screen. The problem is I don't know how to break this up so that I can get all the tasks separately.
This is my first time working with API so any help will be appreciated.