Structures
The following structures are available globally.
-
JSONCache is a thin layer on top of Core Data that seamlessly consumes, caches and produces JSON data.
- Automatically creates Core Data objects from JSON data, or merges JSON data into objects that already exist.
- Automatically maps 1:1 and 1:N relationships based on inferred knowledge of your Core Data model.
- If necessary, automatically maps between
snake_casein JSON andcamelCasein Core Data attribute names. - Generates JSON on demand, both from
NSManagedObjectinstances, and from anystructthat adopts theJSONifiableprotocol. - Operates on background threads to avoid interfering with your app’s responsiveness.
Declaration
Swift
public struct JSONCache
-
A simple casing converter for dictionary keys, converting either from
See moresnake_casetocamelCase, or fromcamelCasetosnake_case.Declaration
Swift
public struct JSONConverter
View on GitHub
Structures Reference