[erlang-questions] Json as binary RabbitMQ Payload

Thomas Elsgaard thomas.elsgaard@REDACTED
Sat Aug 3 02:20:18 CEST 2013

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 ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130802/bde09cf2/attachment.htm>

More information about the erlang-questions mailing list