According to the documentation:
http://code.google.com/p/json-simpl/wiki/MappingBetweenJSONAndJavaEntities
JSON arrays are only serialised from java.util.List. When it comes to
serialisation, I think it might be worth allowing for java.util.Collection
instead, since the serialisation is done using List.iterator().
On the other hand, serialising Object[] (or any primitive type array) to a JSON
array would be a very useful addition, too.
Original issue reported on code.google.com by
lukas.eder@gmail.comon 30 Jun 2011 at 1:13