JSONArray is assigned to JSONObject as a string format solution

JSONArray is assigned to JSONObject to parse json. After json is parsed, it is found that JSONArray becomes a string:

JSONArray looks like a string:

Normal appearance:

solve:

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

 

Guess you like

Origin blog.csdn.net/qq_35340913/article/details/106425502