[erlang-questions] Json as binary RabbitMQ Payload

Max Bourinov bourinov@REDACTED
Tue Aug 6 08:44:17 CEST 2013


We use Jiffy [1] for this purpose. Works very well on production.

1. https://github.com/davisp/jiffy

Best regards,
Max



On Sat, Aug 3, 2013 at 3:13 AM, Juan Jose Comellas <juanjo@REDACTED>wrote:

> You could use JSX [1], which encodes/decodes binaries by default. Bear in
> mind that the decoded format is not the same one mochiweb uses.
>
> [1] https://github.com/talentdeficit/jsx
>
>
> On Fri, Aug 2, 2013 at 9: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
>>
>>
>
> _______________________________________________
> 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/20130806/206931a3/attachment.htm>


More information about the erlang-questions mailing list