Get Updates By E-mail 

Article Written By:
Johann Dowa

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.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments