I'm trying to create a Claim which will be called 'custom' and will be a collection of key/value pairs.
Example:
"user_id": "123456", "custom": { "first_name": "John", "last_name": "Smith" }
I can create the Claim: user_id, but am unsure of the best way to add the Claim which is a collection.
String token = JWT.create().withClaim("user_id", "123456").sign(algorithm);
Any advise would be great.