JSON to Persistent Data Store (CoreData, etc.)
Posted
by Bryan Veloso
on Stack Overflow
See other posts from Stack Overflow
or by Bryan Veloso
Published on 2010-04-01T22:03:36Z
Indexed on
2010/04/01
22:23 UTC
Read the original article
Hit count: 349
All of the data on my application is pulled through an API via JSON. The nature of a good percentage of this data is that it doesn't change very often. So to go and make JSON requests to get a list of data that doesn't change much didn't seem all that appealing.
I'm looking for the most sensible option to have this JSON saved onto the iPhone in some sort of persistent data store. Obviously one plus of persisting the data would be to provide it when the phone can't access the API.
I've looked at a few examples of having JSON and CoreData interact, for example, but it seems that they only describe transforming NSManagedObjects into JSON. If I can transform JSON into CoreData, my only problem would be being able to change that data when the data from the API does change.
(Or, maybe this is all just silly.)
© Stack Overflow or respective owner