com.alibaba.fastjson.JSONException: syntax error, pos 6, json : userId=3&flag=1

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

com.alibaba.fastjson.JSONException: syntax error, pos 6, json : userId=3&flag=1
at com.alibaba.fastjson.parser.DefaultJSONParser.parse(DefaultJSONParser.java:1361)
at com.alibaba.fastjson.parser.DefaultJSONParser.parse(DefaultJSONParser.java:1268)
at com.alibaba.fastjson.serializer.StringCodec.deserialze(StringCodec.java:105)
at com.alibaba.fastjson.serializer.StringCodec.deserialze(StringCodec.java:87)
at com.alibaba.fastjson.parser.DefaultJSONParser.parseObject(DefaultJSONParser.java:614)
at com.alibaba.fastjson.JSON.parseObject(JSON.java:339)
at com.alibaba.fastjson.JSON.parseObject(JSON.java:307)
at com.alibaba.fastjson.JSON.parseObject(JSON.java:270)
at com.alibaba.fastjson.JSON.parseObject(JSON.java:370)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 month ago

Know the solutions? Share your knowledge to help other developers to debug faster.