JSONArray赋值给JSONObject是解析json后,json解析后,发现JSONArray变成字符串:
JSONArray为字符串的样子:
正常的样子:
解决:
//科目信息jsonArray列表
JSONArray accounts = getAccounts(grdERPlist, description, employeeCode, unitCode);
formData.put("VOUCHER_D", accounts.toList());
JSONArray赋值给JSONObject是解析json后,json解析后,发现JSONArray变成字符串:
JSONArray为字符串的样子:
正常的样子:
解决:
//科目信息jsonArray列表
JSONArray accounts = getAccounts(grdERPlist, description, employeeCode, unitCode);
formData.put("VOUCHER_D", accounts.toList());