Serialization of complex value in the JWT as claims

A simple change in order to support serialization of complex values for the JWT into json string claims. For example with this change we now have access to the claim "identities" which content is a json string.
Before the change "identites" claim value was incorrect.
I ve verified that the change works with array of object (identitites) and complex object (firebase info)