json三种格式
JSONObject jsonParam = new JSONObject();
jsonParam.put("name", poolname);
jsonParam.put("callCondition", "voice_upload");
JSONObject jsonObject = new JSONObject();
jsonObject.put("voicePacketModel", "voice_female_xiaohua");
jsonParam.put("realTimeSynParams", jsonObject);
String data = null;
ArrayList<HashMap<String, String>> enclosureList = new ArrayList<HashMap<String, String>>();
HashMap<String, String> tmpHash = new HashMap<String, String>();
tmpHash.put("phone", phonenum);
enclosureList.add(tmpHash);
JSONArray enclosure = JSONArray.parseArray(JSON.toJSONString(enclosureList));
jsonParam.put("phones", enclosure);
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)