Converting put data to json string