getting the data from json