is there any way to avoid JSONObject from putting escape char?

时间:2016-05-19 08:16:08

标签: java jquery getjson

JSONObject jsonObject = new JSONObject();
jsonObject.put(BEAN, jsonUtility.getJSONFromObject(bean));

this results

{"resp1":"{\"resp2\":\"TQ\",\"resp3\":\"2016-05-31\",\"resp4\":0}"}
{"resp1":"{"resp2":"TQ","resp3":"2016-05-31","resp4":0}"}

0 个答案:

没有答案