i am using SBJSON and Core Data for the first time. I have a an Entity like this :
myEntity {
NSString *contenu;
NSString *first;
NSString *previous;
}
I would like to create my JSON with this entity, and second question, i would like to store a JSON in my Entity Core Data ? thanks
Not sure what you mean by “store a
JSONin my Entity Core Data`.To convert an Entity into a JSON structure for sending out you can turn the entity into a
NSDictionary. From there you can useSBJSONto turn thatNSDictionaryinto aJSONstring.In this question I detailed how to do this. It is sample code but it explains how to get everything working.