diff --git a/core/src/main/java/com/alibaba/fastjson2/JSONObject.java b/core/src/main/java/com/alibaba/fastjson2/JSONObject.java index a0c3d810a7..2dae0a1040 100644 --- a/core/src/main/java/com/alibaba/fastjson2/JSONObject.java +++ b/core/src/main/java/com/alibaba/fastjson2/JSONObject.java @@ -1093,6 +1093,17 @@ public Instant getInstant(String key) { return TypeUtils.toInstant(value); } + /** + * Returns the Object of the associated keys in this {@link JSONObject}. + * + * @param key the key whose associated value is to be returned + * @param value value to be associated with the specified key + * @return {@link Object} + */ + public Object put(String key, Object value) { + return super.put(key, value); + } + /** * Serialize to JSON {@link String} *