AutoBean returning ListObject

2014-01-08 Thread aditi
have an autobean that returns ListObject. The reason is the json key to which the getListVal() is mapped is an array of string and Integer values. After filling the autobean, I am able to get the size of getListVal properly but while iterating through the returned list, illegalArgument

Re: AutoBean returning ListObject

2014-01-08 Thread Thomas Broyer
AutoBeans do not support polymorphism, even for primitive values; and yes, that means you cannot work with mixed-type arrays. I think you could still work with your JSON object, but at a lower level: use Splittable instead of ListObject. On Wednesday, January 8, 2014 9:04:42 AM UTC+1, aditi