diff --git a/core/src/main/java/com/alibaba/fastjson2/JSONObject.java b/core/src/main/java/com/alibaba/fastjson2/JSONObject.java index d0f6a95c42..b6ec7720a6 100644 --- a/core/src/main/java/com/alibaba/fastjson2/JSONObject.java +++ b/core/src/main/java/com/alibaba/fastjson2/JSONObject.java @@ -2021,6 +2021,13 @@ public static JSONObject parse(String text, JSONReader.Feature... features) { return JSON.parseObject(text, features); } + /** + * See {@link JSON#parseObject} for details + */ + public static JSONObject from(String text) { + return JSON.parseObject(text); + } + /** * See {@link JSON#toJSON} for details */