[erlang-questions] Json as binary RabbitMQ Payload

Bob Ippolito bob@REDACTED
Sat Aug 3 02:49:02 CEST 2013


iolist_to_binary(D)


On Fri, Aug 2, 2013 at 5:20 PM, Thomas Elsgaard
<thomas.elsgaard@REDACTED>wrote:

> Hi all
>
> With mochijson2 i am encoding to json:
>
> D = mochijson2:encode({struct, [{"id", Id}]})
>
> Now i would like to pass D to rabbitMQ as a payload , but in order to do
> that, it should be  binary, how i can do that ?
>
>  Thomas
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130802/0f6daee2/attachment.htm>


More information about the erlang-questions mailing list