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_case
in JSON andcamelCase
in Core Data attribute names. - Generates JSON on demand, both from
NSManagedObject
instances, and from anystruct
that adopts theJSONifiable
protocol. - 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_case
tocamelCase
, or fromcamelCase
tosnake_case
.Declaration
Swift
public struct JSONConverter