contentHandler.endElement(Constants.EMPTY_STRING, Constants.EMPTY_STRING, null);
}
contentHandler.endDocument();
} else if (jsonValue.getValueType() == ValueType.ARRAY) {
SAXUnmarshallerHandler rootContentHandler = null;
if (getContentHandler() instanceof SAXUnmarshallerHandler) {
rootContentHandler = (SAXUnmarshallerHandler) getContentHandler();
}
JsonArray jsonArray = (JsonArray) jsonValue;
int size = jsonArray.size();
List list = new ArrayList(size);
for (int x = 0; x < size; x++) {
parseRoot(jsonArray.get(x));
if (getContentHandler() instanceof SAXUnmarshallerHandler) {
SAXUnmarshallerHandler saxUnmarshallerHandler = (SAXUnmarshallerHandler) contentHandler;
list.add(saxUnmarshallerHandler.getObject());
saxUnmarshallerHandler.setObject(null);
} else if (getContentHandler() instanceof UnmarshalRecord) {
UnmarshalRecord unmarshalRecord = (UnmarshalRecord) contentHandler;
Object unmarshalledObject = unmarshalRecord.getCurrentObject();
if (includeRoot && unmarshalClass != null) {
if (!(unmarshalledObject instanceof Root)) {