java 参数:
@RequestParam (required=false) String queryJson)
``` >
接收到的参数值,打印如下:
```javascript
{"key":"materialid","type":"txt","tj":"like","value":"1000016","logic":"and"},{"key":"FQty","type":"Decimal","tj":"like","value":"50000","logic":"and"}
java 转为json:
JSONArray jsonArr = JSONArray.parseArray(queryJson);
执行报以下错:
严重: Servlet.service() for servlet [servlet] in context with path [/llab] threw exception [Request processing failed; nested exception is com.alibaba.fastjson.JSONException: syntax error, expect [, actual {, pos 0] with root cause
有能解决或碰到过这样问题的大神,请支个招儿。或有其它好点的办法来处理这个case也行,谢谢~
qq: 16770629
Sinea
哈哈悄悄删了
2019-03-10 22:25
n***@126.com (作者)
回复 Sinea:第一次说要删除提问,没找到在哪删除
2019-03-11 19:28