JSONException: com.alibaba.fastjson.JSONException: expect ':' at 0, actual = Resolved

Error contents: 

expect ':' at 0, actual =  com.alibaba.fastjson.JSONException: expect ':' at 0, actual =

the reason:

The exception is an exception, certainly not the run-time syntax errors.

Means JSONEObject translation exception, typically () method of the position error fromObject .

Check your code JSONEObject.fromObject (result) code location, parameter result does not meet the definition of Json format, so can not be converted into a Json format, resulting in reported above error.

Solution:

Good check under your result parameters, defined in terms of Json specification.

If we want an output result, marks may be applied across the parameters: Result = "[" + Result + "]";

I'm being given location the following tips:

 

Shaoxia Please stay ...ヾ(◍ ° ∇ ° ◍) Techno゙... 
welcome thumbs up, comment, plus interest, to allow more people to see learn to earn
more exciting, please pay attention to my "Today's headlines No ": Java cloud notes

Published 171 original articles · won praise 311 · Views 100,000 +

Guess you like

Origin blog.csdn.net/weixin_44259720/article/details/104637508