I'm new to Core data and was wondering which was the best way to store a Json Data like this :
{"LG" :
{ "Nexus 5" :
{ "variant"s : [
{"model" : "Nexus 5 16gb"},
{"model" : "Nexus 5 32gb"}
]
},
},
{ "Nexus 4" :
{ "variant"s : [
{"model" : "Nexus 4 16gb"},
{"model" : "Nexus 4 32gb"}
]
},
},
}, ...... so on..
I tried storing the whole data as a NSDictionary
, after making the Attribute Type "Transformable"
, but I encountered some errors such as NSUnknownKeyException
.
I would like to store the data as NSString
and make use of some Relationships
.
Can someone tell me what might be the best way to store the same and not saving the whole bunch of data as an NSDictionary
?