athoune / tnetstrings

Tnetstrings for Erlang
3 stars 2 forks source link

Fix the encoder to handle lists of objects. #3

Open tOkeshu opened 12 years ago

tOkeshu commented 12 years ago

Now the encoder handle the following case:

[{struct, [{a, <<"b">>}]}, {struct, [{c, <<"d">>}]}]

The side effect is that the encoder does not supports lists of tuples as objects anymore. So I removed the test which verified the following case:

[{age, 42}, {name, <<"Robert">>}]

Tell me what you think.