for (Object o: (Object[]) obj) {
array.add(toJsonNode(o));
}
return array;
} else if (obj instanceof Integer) {
return new IntNode((Integer) obj);
} else if (obj instanceof Long) {
return new LongNode((Long) obj);
} else if (obj instanceof Double) {
return new DoubleNode((Double) obj);
} else if (obj instanceof Float) {