private static JSONObject of(JSONObject jsonObject, Object... kvArray) {
        if (kvArray == null || kvArray.length == 0) {
            throw new JSONException("The kvArray cannot be empty");
        }
        final int kvArrayLength = kvArray.length;
        if ((kvArrayLength & 1) == 1) {
            throw new JSONException("The length of kvArray cannot be odd");
        }
        boolean valueMaybeNull = false;
        for (int i = 0; i < kvArrayLength; i++) {
            Object keyObj = kvArray[i++];
            if (!(keyObj instanceof String)) {
                throw new JSONException("The value corresponding to the even bit index of kvArray is key, which cannot be null and must be of type string");
            }
            String key = (String) keyObj;
            if (valueMaybeNull) {
                if (jsonObject.containsKey(key)) {
                    throw new JSONException("The value corresponding to the even bit index of kvArray is key and cannot be duplicated");
                }
                jsonObject.put(key, kvArray[i]);
            } else {
                Object old = jsonObject.put(key, kvArray[i]);
                if (old != null) {
                    throw new JSONException("The value corresponding to the even bit index of kvArray is key and cannot be duplicated");
                }
                valueMaybeNull = kvArray[i] == null;
            }
        }
        return jsonObject;
    }
Pack multiple key-value pairs as {@link JSONObject}

<pre>
JSONObject jsonObject = JSONObject.of(Object... kvArray);
</pre>

@param kvArray key-value
@since 2.0.53
core/src/main/java/com/alibaba/fastjson2/JSONObject.java