阿里的fastJson.jar: //list转换为json List<CustPhone> list = new ArrayList<CustPhone>(); String str=JSON.toJSON(list).toString(); 1 2 3 //json转换为list List<Person> list = new ArrayList<Person>(); list = JSONObject.parseArray(jasonArray, Pe
问题 如上图所示,阿里云的PercentEncode 转换! 为 %21 PercentEncode 源码为: package com.aliyuncs.auth; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; public class AcsURLEncoder { public final static String URL_ENCODING = "UTF-8"; public st