conversion of data into JSON.