From JSON to Core Data and back.