Package com.foxinmy.weixin4j.xml
Class ListsuffixResultSerializer
- java.lang.Object
-
- com.foxinmy.weixin4j.xml.ListsuffixResultSerializer
-
public class ListsuffixResultSerializer extends Object
对 后缀为_$n 的 xml节点序列化- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
-
-
Constructor Summary
Constructors Constructor Description ListsuffixResultSerializer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,String>
listsuffixConvertMap(List<?> listsuffix)
list对象转换为map的$n形式static com.alibaba.fastjson.JSONObject
serializeToJSON(Object object)
序列化为jsonstatic String
serializeToXML(Object object)
序列化为xml
-
-
-
Method Detail
-
serializeToJSON
public static com.alibaba.fastjson.JSONObject serializeToJSON(Object object)
序列化为json- Parameters:
object
-- Returns:
- json
-
listsuffixConvertMap
public static Map<String,String> listsuffixConvertMap(List<?> listsuffix)
list对象转换为map的$n形式- Parameters:
listsuffix
-- Returns:
-
-