Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to disable decoding escaped characters in strings #383

Open
absrd opened this issue Jul 31, 2019 · 0 comments
Open

Add option to disable decoding escaped characters in strings #383

absrd opened this issue Jul 31, 2019 · 0 comments

Comments

@absrd
Copy link

absrd commented Jul 31, 2019

I've come across JSON objects with serialized JSON objects with escaped unicode characters as values that have been used to create cryptographic signatures, e.g:

{
  "key": "{\"key\":\"\u003d\"}"
}

Verifying the signature requires the string to be untouched, but parsing it with the json gem decodes the code points.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant