"unrecognized Token 'com': Was Expecting ('true', 'false' Or 'null')"
I have converted this json to string to save in local database { 'type': 'file', 'id': 'b665ff0b-5f7b-4991-ae88-ac5054880223', 'link': { 'href':
Solution 1:
I believe you are getting an error like this
Unrecognized token 'com': was expecting ('true', 'false' or 'null')\n at [Source: (String)\"com.jwt.secured.user.ApplicationUser@6d9cce48: Username: justiuser; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Not granted any authorities\"; line: 1, column: 4]",
The com is related to the package reference in the string. Give a proper toString()
implementation in the class and use ObjectMapper().writeValueAsString
to converto to String.
Post a Comment for ""unrecognized Token 'com': Was Expecting ('true', 'false' Or 'null')""