> I've tried: > binary_to_list(iolist_to_binary(mochijson2:encode(Data))) > > It works but there is probably a better way. The http request body can be a string or a binary, so no need to call binary_to_list.