com.alibaba.fastjson.JSONException: syntax error, expect
•
数据库
关于syntax error, pos 1, line 1, column 2 异常解决方法
明明数组对象里面有值但是在进行转换时报错
syntax error, pos 1, line 1, column 2FlowProcDefDto(id=null, name=null, flowKey=null, category=null, formName=null, formId=null, version=0, deploymentId=null, suspensionState=0, deploymentTime=null)
解决方法
// 使用JSON.toJSONString() 不要直接JSONObject.parseObject((string)args[0])强转 Object[] args = proceedingJoinPoint.getArgs(); JSONObject jsonObject = JSONObject.parseObject(JSON.toJSONString(args[0]));
本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://www.net2asp.com/3f370bf95e.html
