接口 JsonParser
- 所有已知实现类:
AbstractJsonParser,FastJsonParser,GsonParser,JacksonParser
public interface JsonParser
- 从以下版本开始:
- 1.1.3
- 作者:
- topsuder
-
方法概要
-
方法详细资料
-
supports
boolean supports()Is support this json parser.- 返回:
- true if support
-
fromJson
Json string to object.- 类型参数:
T- the target type- 参数:
json- json stringtypeOfT- type of target object- 返回:
- target object
-
toJson
Object to json string.- 参数:
obj- object- 返回:
- json string
-