Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List problem in MappedXMLStreamWriter #10

Open
sberyozkin opened this issue May 14, 2015 · 0 comments
Open

List problem in MappedXMLStreamWriter #10

sberyozkin opened this issue May 14, 2015 · 0 comments

Comments

@sberyozkin
Copy link
Contributor

List results = new ArrayList();
results.add("aaa");
results.add(1L);
results.add("bbb");
results.add(2L);

expected result:
{"result":{"list":[
{"string":"aaa","long":1,"string":"bbb","long":2}

]}}
but actual:
{"result":{"list":[
{"string":["aaa","bbb"],"long":[1,2]}

]}}

Jettison seems to auto-merge the elements with same type, which saves space, but is incorrect behaviour. The order of a list is important and needs to be kept.

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

No branches or pull requests

1 participant