Closed far768 closed 4 months ago
Additional Information:
for token encryption, using EncryptedJWT and in the encrypt there is process of getPayload().toByetes() in the Payload class where toString() is called and next it goes to the condition where JSONObjectUtils.toJsonString(jsonObject) is called. further the serialization taking place using GSON lib.
Hi @far768 , guess you've posted issue to wrong project?
I'm not a guy behind nimbus
library (though do cross compatibility tests against it) and this is other library named jose-jwt
:)
Issue Description: When generating JWTtoken, Before upgrading to version 9.24+, serialization and de-serialization of a 'JSONObject' containing a class object with a field of type 'Map<String, List>' worked correctly. This was because the getter method was being called during serialization, ensuring proper handling of the data. However, after upgrading to version 9.24+, issues arose where serialization is performed directly on the field type, neglecting to use the getter method for serialization.
Steps to Reproduce:
Map<String, List<String>>
.JSONObject
.Expected Behavior:
Actual Behavior:
Additional Information:
Tech stack: