public class JSONUtils extends Object
Constructor and Description |
---|
JSONUtils() |
Modifier and Type | Method and Description |
---|---|
static com.alibaba.fastjson.JSONObject |
toJsonObject(String jsonStr)
将json字符串转化为JSON对象
|
static <T extends MsgGet> |
toMsgGet(com.alibaba.fastjson.JSONObject jsonObject,
Function<com.alibaba.fastjson.JSONObject,Class<T>> toType)
根据JSONObject对象来将json对象转化为对应的消息获取对象
|
static <T extends MsgGet> |
toMsgGet(String jsonStr,
Function<com.alibaba.fastjson.JSONObject,Class<T>> toType)
根据json字符串将json对象转化为对应的消息获取对象
|
public static com.alibaba.fastjson.JSONObject toJsonObject(String jsonStr)
public static <T extends MsgGet> T toMsgGet(com.alibaba.fastjson.JSONObject jsonObject, Function<com.alibaba.fastjson.JSONObject,Class<T>> toType)
Copyright © 2020. All rights reserved.