<div dir="ltr">iolist_to_binary(D)</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 2, 2013 at 5:20 PM, Thomas Elsgaard <span dir="ltr"><<a href="mailto:thomas.elsgaard@gmail.com" target="_blank">thomas.elsgaard@gmail.com</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"><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 class="HOEnZb"><font color="#888888"><div><span><span><span></span></span></span> </div>

<div><span><span><span> Thomas</span></span></span></div></font></span></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>