static Object toJSON(Object object) {
        return toJSON(object, (JSONWriter.Feature[]) null);
    }
Converts the specified object to a {@link JSONArray} or
{@link JSONObject}. Returns {@code null} if received object is {@code null}

@param object the specified object to be converted
@return {@link JSONArray} or {@link JSONObject} or {@code null}
core/src/main/java/com/alibaba/fastjson2/JSON.java