/**
* 从一个JSON 对象字符格式中得到一个java对象
* @param jsonString json
字符串 * @param pojoCalss 对象class
* @return
*/
public static Object getObject4JsonString(String jsonString, Class pojoCalss) {
Object pojo;
JSONObject jsonObject = JSONObject.fromObject(jsonString);
pojo = JSONObject.toBean(jsonObject, pojoCalss);
return pojo;
}