Writing JWKSet to a file gets escaping characters

Issue #400 closed
rcsilva83 created an issue

Hi,

I’m trying to write a JWKSet to a file using the following code:

JWKSet jwks = ...;
jwks.toJSONObject().writeJSONString(writer);

However, the content of “x5c” is being altered by preceding the “/” chars with the escape character “\”.

I got the same problem with this code:

JWKSet jwks = ...;
writer.write(jwks.toString());

Is it a bug or am I doing it wrong?

Thanks for your attention!

Regards,

Rodrigo

Comments (3)

  1. Log in to comment