T - JSON类型,可以是JSONObject或者JSONArrayV - 对象类型@FunctionalInterface public interface JSONSerializer<T extends JSON,V>
| Modifier and Type | Method and Description | 
|---|---|
void | 
serialize(T json,
         V bean)
序列化实现,通过实现此方法,将指定类型的对象转换为 
JSON对象转换后的对象可以为JSONObject也可以为JSONArray,首先new一个空的JSON,然后将需要的数据字段put到JSON对象中去即可。  | 
Copyright © 2021. All rights reserved.