How to map nested complex JSON objects and save them to core data?
问题 I'm having problem with mapping and saving complex nested JSON data to Core data objects. It's meant for reading the data in case of offline mode and caching. JSON also has codes, which represent an id of an object in code list. Nesting depth of object in JSON can be between 5-8 objects. Example of such (simplified) JSON would be something like this (Person object): https://pastebin.com/nKSFa5cp Example of code list for relatedPerson: { "relatedPerson": [ { "code": 1, "description": "Mom" },