Originally suggested for the Nimbus JOSE+JWT lib:
https://bitbucket.org/connect2id/nimbus-jose-jwt/issues/239/switch-to-other-json-library#comment-57541185