Convert post body hashes to json before sending the request