I need to retrieve data from a JSON file within my application without making any requests to a server, just using local storage.
How can I accomplish this?
After searching online, all solutions involve fetching data from a server or storing it in AsyncStorage (or something similar).
If this were Python, I could simply do the following:
import json
data = json.load(open('data.json'))
Then I could manipulate the data as needed.
Thank you for your help.
Note: Although the data is currently in JSON format, I am open to changing it to another format supported by Python since my parsing and generating script is written in Python.