json turn always reported bean A JSONObject text must begin with '{' at 1 [character 2 line 1] error.

Sometimes when the string is converted into json bean packets will always turn bean always reported json A JSONObject text must begin with '{ ' at 1 [character 2 line 1] errors, but a check json string is not a problem, this time may be json sequence encoding a problem and needs to turn into json string of utf-8 encoded. For details, see: https://my.oschina.net/u/1540325/blog/742331

Guess you like

Origin www.cnblogs.com/jasonboren/p/12527870.html