纠结的JSONException异常..... net.sf.json.JSONException: Missing value. at character的问
今天遇到一问题:通过浏览器url方式将json作为参数传递,在后台无法解析,在转为时候JSONArray抛出如下异常:[问题,若将相同的json代码直接放到后台程序中可以正常解析],请问是否有遇到过相同问题的,应该如何处理.先谢过!!!!!!!!! net.sf.json.JSONException: Missing value. at character 2 of [{\"Command\":\"1\",\"Name\":\"PARAM\",\"Type\":\"Request\",\"Params\":[{\"MAX\":\"40\",\"MODE\":\"1\",\"SELECT\":\"1904\",\"TIME\":\"0\",\"iMAX\":\"700\",\"iMIN\":\"10\",\"iMODE\":\"0\",\"iNESS\":\"10\",\"iSH\":\"0\",\"iSM\":\"0\",\"iTI\":\"41\",\"mark\":\"4\"}],\"Con\":{}}] at net.sf.json.util.JSONTokener.syntaxError(JSONTokener.java:505) at net.sf.json.util.JSONTokener.nextValue(JSONTokener.java:377) at net.sf.json.JSONObject._fromJSONTokener(JSONObject.java:1161) at net.sf.json.JSONObject.fromObject(JSONObject.java:155) at net.sf.json.util.JSONTokener.nextValue(JSONTokener.java:347) at net.sf.json.JSONArray._fromJSONTokener(JSONArray.java:1132) at net.sf.json.JSONArray._fromString(JSONArray.java:1198) at net.sf.json.JSONArray.fromObject(JSONArray.java:127) at net.sf.json.JSONArray.fromObject(JSONArray.java:105) at com.tiandy.dxx.dao.jdbc.WebServiceDaoJdbc.getJSONMap(WebServiceDaoJdbc.java:172) at com.tiandy.dxx.dao.jdbc.WebServiceDaoJdbc.ocxOperate(WebServiceDaoJdbc.java:380) at com.tiandy.dxx.service.impl.WebServiceManagerImpl.ocxOperate(WebServiceManagerImpl.java:36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ..........................................