mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
change code
This commit is contained in:
parent
3203f7d750
commit
8b0357da18
@ -4,7 +4,7 @@ import cn.hutool.json.JSON;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 序列化接口,通过实现此接口,实现自定义的对象转换为JSON的操作
|
* 序列化接口,通过实现此接口,实现自定义的对象转换为JSON的操作
|
||||||
*
|
*
|
||||||
* @param <T> JSON类型,可以是JSONObject或者JSONArray
|
* @param <T> JSON类型,可以是JSONObject或者JSONArray
|
||||||
* @param <V> 对象类型
|
* @param <V> 对象类型
|
||||||
* @author Looly
|
* @author Looly
|
||||||
@ -15,7 +15,7 @@ public interface JSONSerializer<T extends JSON, V> {
|
|||||||
/**
|
/**
|
||||||
* 序列化实现,通过实现此方法,将指定类型的对象转换为{@link JSON}对象<br>
|
* 序列化实现,通过实现此方法,将指定类型的对象转换为{@link JSON}对象<br>
|
||||||
* 转换后的对象可以为JSONObject也可以为JSONArray,首先new一个空的JSON,然后将需要的数据字段put到JSON对象中去即可。
|
* 转换后的对象可以为JSONObject也可以为JSONArray,首先new一个空的JSON,然后将需要的数据字段put到JSON对象中去即可。
|
||||||
*
|
*
|
||||||
* @param json JSON,可以为JSONObject或者JSONArray
|
* @param json JSON,可以为JSONObject或者JSONArray
|
||||||
* @param bean 指定类型对象
|
* @param bean 指定类型对象
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user