mirror of
https://gitee.com/BDWare/common
synced 2025-01-10 01:44:16 +00:00
feat: update JsonUtil
add JsonUtil.parseObject to return JsonElement
This commit is contained in:
parent
c1654034ac
commit
aa225980fa
@ -48,4 +48,8 @@ public class JsonUtil {
|
||||
public static JsonObject parseObjectAsJsonObject(Object obj) {
|
||||
return GSON.toJsonTree(obj).getAsJsonObject();
|
||||
}
|
||||
|
||||
public static JsonElement parseObject(Object obj) {
|
||||
return GSON.toJsonTree(obj);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user