convert the data to json data