I'm parsing a JWT with jwsClaims.getBody()
and the output I get looks like this:
{
iss=issuer,
sub=joe@smith.net,
roleName=user,
companyName=company,
iat=1493790315,
exp=1494395115
}
The output should be JSON but it is missing the double quotes (") around the keys and values. I'm trying to use an Object mapper on the JSON but get an error message:
IOException in fromJson: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('i' (code 105)): was expecting double-quote to start field name at [Source: {iss=issuer, sub=joe@smith.net, roleName=user, companyName=company, iat=1493790315, exp=1494395115}; line: 1, column: 3]
Any ideas why the quotes are missing from the claims?