How to parse one block of JSON data instead of the entire JSON sequence
问题 Below is the code that am using to parse a JSON api. The code works and i am able to parse all the JSON values into the struct below but i would like to know how to parse only the first block(?)/ array and store them in the struct so that i can perform operations on them. let jsonUrlString = "https://www.alphavantage.co/query?function=FX_INTRADAY&from_symbol=EUR&to_symbol=USD&interval=5min&apikey=demo" let urlObj = URL(string: jsonUrlString) URLSession.shared.dataTask(with: urlObj!) {(data,