use json to send data