标签:ar sp on bs as nbsp js return class
import net.sf.json.JSONObject;
ProductSearchParam paramObj = null;
if(StringUtils.isNotBlank(parm)){
JSONObject jsonObj = JSONObject.fromObject(parm);
paramObj= (ProductSearchParam)JSONObject.toBean(jsonObj,ProductSearchParam.class);
}
public static Map<String,String> jsonStrToMap(String jsonStr){
if(StringUtil.isNull(jsonStr))return null;
JSONArray jsonArray = JSONArray.fromObject(jsonStr);
JSONObject jsonObject = jsonArray.getJSONObject(0);
return (Map<String,String>)jsonObject.toBean(jsonObject, Map.class);
}
标签:ar sp on bs as nbsp js return class
原文地址:http://www.cnblogs.com/yqlwl66/p/4110995.html