- edited description
- changed title to Writing JWKSet to a file gets escaping characters
Writing JWKSet to a file gets escaping characters
Issue #400
closed
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)
-
reporter -
- changed status to invalid
This is a feature of the underlying JSON Smart library, to ensure "safety" of the output in more scenarios.
You can read one discussion about flash escaping in JSON here:
https://stackoverflow.com/questions/1580647/json-why-are-forward-slashes-escaped
-
reporter - changed status to closed
- Log in to comment