change json to string to transfer