This will help you to understand how to do pre insertion in core data by using JSON parsing.Also it demonstrate insertion and fetching to data from DB