Created the JSON payload to send to the server