This repo will help you to understand coredata .It also perform pre insertion of data into DB using core data and Parsing of JSON. Also insertion and fetching operations are implemented in this  repo.