Changed the data into JSON