added function to get data in json format