import com.google.gson.Gson;
javaBean转换为json格式:
String str = new Gson().toJson(javaBean);
json字符串转换为bean:
String jsonStr; //拼接form表单字段值
Gson g = new Gson();
ChqyhzBean hz = g.fromJson(jsonStr, ChqyhzBean.class);