JSONArray赋值给JSONObject为字符串格式解决办法

JSONArray赋值给JSONObject是解析json后,json解析后,发现JSONArray变成字符串:

JSONArray为字符串的样子:

正常的样子:

解决:

//科目信息jsonArray列表
JSONArray accounts = getAccounts(grdERPlist, description, employeeCode, unitCode);
formData.put("VOUCHER_D", accounts.toList());

猜你喜欢

转载自blog.csdn.net/qq_35340913/article/details/106425502
今日推荐