Open sberyozkin opened 9 years ago
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.
I must say, this is an important issue!
Has anyone located the related code?
List
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.