CoreDataMapper is a framework based on ObjectMapper. It's written in Swift that makes it easy for you to convert your CoreData objects to and from JSON.
- Mapping JSON to CoreData objects
Create MapContext with NSManagedObjectContext and EntityName:
let mapperContext = CoreDataMapContext(managedObjectContext: managedObjectContext, entityName: entityName)
let mapper = Mapper<T>(context: mapperContext) # T is kind of NSManagedObjectModel and implements Mappable
let result = mapper.map(JSON: jsonObject) # jsonObject is kind of [String : Any]