added function to read and parse the json objects used for storage