Open Source Library For Automatically Mapping JSON Data To Core Data

I’ve mentioned a number of libraries for working with Core Data most recently QueryKit for making completed database queries, along with the AlecrimCoreData  and SuperRecord helper libraries inspired by MagicalRecord.

Here’s an open source Swift based library from Elvis Nuñez that makes it easy to parse a JSON response into Core Data database called Kipu.

Kipu parses JSON data in the background, automatically updating your objects when differences are found with support for automatic mapping of with automatically mapping of relationships and more.

Here are the key features of Kipu as stated in the readme:

Handles operations in safe background threats
Thread safe saving, we handle retrieving and storing objects in the right threads
Diffing of changes, updated, inserted and deleted objects (which are automatically purged for you)
Auto-mapping of relationships (one-to-one, one-to-many and many-to-many)
Smart-updates, only updates your NSManagedObjects if the server values are different (useful when using NSFetchedResultsController delegates)
Uniquing, CoreData does this based on objectIDs, we use your remote key (such as id) for this

You can find Kipu on Github here.

A nice library for working with JSON data.

Original article: Open Source Library For Automatically Mapping JSON Data To Core Data

©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *