JSONArray賦值給JSONObject爲字符串格式解決辦法

JSONArray賦值給JSONObject是解析json後,json解析後,發現JSONArray變成字符串:

JSONArray爲字符串的樣子:

正常的樣子:

解決:

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

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章