<div dir="ltr">We use Jiffy [1] for this purpose. Works very well on production.<div><br></div><div>1. <a href="https://github.com/davisp/jiffy">https://github.com/davisp/jiffy</a></div></div><div class="gmail_extra"><br clear="all">
<div><div>Best regards,</div><div>Max</div><br></div>
<br><br><div class="gmail_quote">On Sat, Aug 3, 2013 at 3:13 AM, Juan Jose Comellas <span dir="ltr"><<a href="mailto:juanjo@comellas.org" target="_blank">juanjo@comellas.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">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.<div><br></div><div>[1] <a href="https://github.com/talentdeficit/jsx" target="_blank">https://github.com/talentdeficit/jsx</a></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">On Fri, Aug 2, 2013 at 9:20 PM, Thomas Elsgaard <span dir="ltr"><<a href="mailto:thomas.elsgaard@gmail.com" target="_blank">thomas.elsgaard@gmail.com</a>></span> wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div>Hi all</div><div> </div><div>With mochijson2 i am encoding to json:</div>
<div> </div><div><span><span><span>D = mochijson2:encode({struct, [{"id", Id}]})</span></span></span></div>
<div><span><span><span></span></span></span> </div>
<div><span><span><span>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 ?</span></span></span></div><span><font color="#888888"><div><span><span><span></span></span></span> </div>
<div><span><span><span> Thomas</span></span></span></div></font></span></div>
<br></div></div><div class="im">_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></div></blockquote></div><br></div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>