If you have a function like this:
List<User> getUsers() {}
If getUsers returns a List with just one element the resulting JSON is just a JSON Object rather than a JSON array.
Is there a workaround to make XStream return JSON array regardless if the function returns single array List?