public boolean isArray(Object key) {
        Object object = super.get(key);
        return object instanceof JSONArray || object != null && object.getClass().isArray();
    }
See {@link JSON#toJSON} for details
core/src/main/java/com/alibaba/fastjson2/JSONObject.java