used to transfer data via json