diff --git a/core/src/main/java/com/alibaba/fastjson2/JSONObject.java b/core/src/main/java/com/alibaba/fastjson2/JSONObject.java index a0c3d810a7..b8063112e2 100644 --- a/core/src/main/java/com/alibaba/fastjson2/JSONObject.java +++ b/core/src/main/java/com/alibaba/fastjson2/JSONObject.java @@ -1093,6 +1093,18 @@ 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} + * @since 2.0.32 + */ + public Object put(String key, Object value) { + return super.put(key, value); + } + /** * Serialize to JSON {@link String} *