Skip to content

Fix the encoder to handle lists of objects.#3

Open
tOkeshu wants to merge 1 commit intoathoune:masterfrom
tOkeshu:bugfix/list-of-objects
Open

Fix the encoder to handle lists of objects.#3
tOkeshu wants to merge 1 commit intoathoune:masterfrom
tOkeshu:bugfix/list-of-objects

Conversation

@tOkeshu
Copy link
Copy Markdown

@tOkeshu tOkeshu commented Dec 25, 2011

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.

Now the encoder handle the following case:

    [{struct, [{a, <<"b">>}]}, {struct, [{c, <<"d">>}]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants