nested exception is com.alibaba.fastjson.JSONException: expect ‘[‘, but string, pos 4, line 1, colum
com.alibaba.fastjson.JSONException: expect ‘[’, but string, pos 4, line 1, column 5"[{“accOrg”:10245735,“accOrgCode”:“UC102214”,“baseOrgCode”:“UC102214”,“cmsOrgDetailVo”:{“address”:“四川成都市双流县成都双流县文星镇光明苑1号”,“baseOrgCode”:“UC102214”,“city”:“510100”,“cityId”:20002504,“cmsOrgId”:10245735,“companyName”:“张毅”,“country”:“08601”,“countryId”:20000001,“county”:“510122”,“countyId”:20002516,“createEmp”:“077067@sichuan”,“createOrg”:161569,“createTime”:1592819106000,“deleteFlag”:false,“gpLimit”:0.0,“maxGp”:3000.0,“maxVipGp”:3000.0,“principal”:“张毅”,“principalMobile”:“13348853961”,“province”:“510000”,“provinceId”:20002503,“siteLabel”:3,“siteOperateType”:1,“siteType”:3,“tel”:“13348853961”,“updateEmp”:“077067@sichuan”,“updateOrg”:161569,“updateTime”:1592819106000},“cmsOrgId”:10245735,“createEmp”:“077067@sichuan”,“createOrg”:161569,“createTime”:1592819106000,“currency”:1,“deleteFlag”:false,“financeCenter”:10000007,“financeCenterCode”:“UC000099”,“namePy”:“chengdouhuiyuanqipeichengZ”,“nameSpy”:“cdhyqpcZ”,“omgOrgId”:185786,“operateCenter”:10000059,“operateCenterCode”:“UC000149”,“orgCode”:“280161”,“orgId”:104765,“orgName”:“成都会缘汽配城Z”,“orgNameEn”:“280161”,“orgNameTw”:“成都会缘汽配城Z”,“orgProperty”:2,“orgType”:30,“parentOrg”:10000059,“parentOrgCode”:“UC000149”,“status”:1021,“statusUpdateDesc”:“已启用”,“statusUpdateTime”:1592819106000,“testFlag”:false,“updateEmp”:“077067@sichuan”,“updateOrg”:161569,“updateTime”:1592819106000,“version”:1}]"
com.alibaba.fastjson.parser.DefaultJSONParser.parseArray(DefaultJSONParser.java:727)
com.alibaba.fastjson.parser.DefaultJSONParser.parseArray(DefaultJSONParser.java:715)
com.alibaba.fastjson.parser.DefaultJSONParser.parseArray(DefaultJSONParser.java:710)
com.alibaba.fastjson.JSON.parseArray(JSON.java:627)
com.alibaba.fastjson.JSON.parseArray(JSON.java:607)
com.easyui.controller.BillRouterController.test(BillRouterController.java:33)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
解决办法:在处理字符串之前,先将字符串去除转义 StringEscapeUtils.unescapeJava(String data)
更多推荐
所有评论(0)