Now we need to use what we learnt about JSON parsing to turn the json data that we get back from coinbase.io into a real Swift Object.
Take a look at how we implemented JSON parsing in the Clima project below. See if you can adapt it for our ByteCoin app and be able to print the last price of Bitcoin in to the console for different currencies.
Hint 1: Remember you can type the URL into your browser's address bar to see how the JSON is formatted:
Hint 2: We’re only interested in the last price of bitcoin.
Hint 3: You will need to create a CoinData file to decode the Bitcoin data. This is how we did it in the Clima app:
GOAL
SOLUTION
Check out the solution to this challenge step by cloning the project from the link below:
https://github.com/appbrewery/ByteCoin-iOS13-Completed/tree/Step-4-Solution