throw new UnmarshallException("Could not read javaClass", e);
}
if (java_class == null) {
throw new UnmarshallException("no type hint");
}
final AbstractList al = new LinkedList();
JSONArray jsonlist;
try {
jsonlist = jso.getJSONArray("list");
} catch (JSONException e) {
throw new UnmarshallException("Could not read list: " + e.getMessage(), e);
}
if (jsonlist == null) {
throw new UnmarshallException("list missing");
}
state.setSerialized(o, al);
int i = 0;
try {
for (; i < jsonlist.length(); i++) {
al.add(_ser.unmarshall(state, null, jsonlist.get(i)));
}
} catch (UnmarshallException e) {
throw new UnmarshallException("element " + i + " " + e.getMessage(), e);
} catch (JSONException e) {
throw new UnmarshallException("element " + i + " " + e.getMessage(), e);