I'm new to programming and I'm trying to write a function in Swift to download a JSON and parse it. However, the JSON is very complicated and I have a daily limit on number of requests of data from the server.
Is there a way to download the data and save it to a file as 'data' so I can run all tests on this data in the file and not have to get it from the server everytime? Once I'm ready, I can start getting data from the server again.
Basically I could initialize a data variable with the contents of the file so I can use it on my tests.
Thank you