I’m trying to find the best way the save data obtained from JSON.
The website which hosts the data is: “JSON data”.
Since I will be using the data in places where I won’t have a connection to the internet, I want to save this data on the iPhone itself, with an ability to update when I do have an internet connection.
I’ll want to display this data in a table view, and I’ll need to be able to filter/search this data. This search will either be on the City, or on the store ID (“no:” in the data). Clicking the row will show a detail view of the store.
I was thinking of storing the data in an SQL table. I’m however unsure of the best way to update the data, and I don’t know how to filter the data on two different columns(City/ID)?
Also, if you know a better approach I’d love to hear it!
Your data appears to be a table of addresses, with some sort of “detail” records associated with each address. This is a classic master/detail database. Normally you’d have one table with a record for each address, and assign some sort of unique ID to each address. Then have a second table that’s keyed by unique ID to contain all of the detail records.