[rabbitmq-discuss] Posting a json body as payload using the http api
Dilip
dilip.ladhani at gmail.com
Thu Jul 26 00:45:40 BST 2012
Ok . I will give this a shot or just ise the client
Sent from my Verizon Wireless Phone
Emile Joubert <emile at rabbitmq.com> wrote:
>Hi,
>
>On 24/07/12 23:59, dilipl wrote:
>> [...] Now this worked fine, when my
>> payload was a simple String. It *does not work*, when I use json as the
>> body. I am thinking the json needs to be escaped somehow?
>
>You may have answered your own question. The payload can be a string or
>base64 encoded and the payload_encoding key must be set accordingly.
>Either encode the body as base64 or escape the contents and supply it as
>a string. Any good JSON reference should provide string escape rules.
>
>-Emile
>
More information about the rabbitmq-discuss
mailing list