send the json to the server