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 and camelCase in Core Data attribute names.
    • Generates JSON on demand, both from NSManagedObject instances, and from any struct that adopts the JSONifiable protocol.
    • Operates on background threads to avoid interfering with your app’s responsiveness.
    See more

    Declaration

    Swift

    public struct JSONCache
  • A simple casing converter for dictionary keys, converting either from snake_case to camelCase, or from camelCase to snake_case.

    See more

    Declaration

    Swift

    public struct JSONConverter