Adding code to read data from json