change data to json