Inserted function to read JSON file.