<div dir="ltr"><div><div><div>Seems parsing of lists is not compliant. I see lot of libraries using different implementations in different languages.<br></div>Anyway I solved my problem<br><br></div>Thanks a lot,<br></div>Silviu<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 15, 2017 at 11:00 AM, Krzysztof Jurewicz <span dir="ltr"><<a href="mailto:krzysztof.jurewicz@gmail.com" target="_blank">krzysztof.jurewicz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> There is any library that allows you to encode a proplist into a query<br>
> string and the other way around.<br>
><br>
> Most of libraries I saw are not working because for example lists of<br>
> properties are failing like:<br>
><br>
> [{<<"a">>, [1,2,3]}]<br>
<br>
cowlib’s cow_qs:parse_qs/1 and cow_qs:qs/1 should do the job:<br>
<br>
3> cow_qs:parse_qs(<<"a=b&a=c">>)<wbr>.<br>
[{<<"a">>,<<"b">>},{<<"a">>,<<<wbr>"c">>}]<br>
4> cow_qs:qs(cow_qs:parse_qs(<<"<wbr>a=b&a=c">>)).<br>
<<"a=b&a=c">><br>
5> cow_qs:parse_qs(<<"a=b&c">>).<br>
[{<<"a">>,<<"b">>},{<<"c">>,<wbr>true}]<br>
</blockquote></div><br></div>