use json for all data transmission