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

Unicode escaping #39

Open
hlavki opened this issue Oct 27, 2020 · 0 comments
Open

Unicode escaping #39

hlavki opened this issue Oct 27, 2020 · 0 comments

Comments

@hlavki
Copy link

hlavki commented Oct 27, 2020

Hi,

I am using CXF with jettison and it looks like jettison as json parser didn't handle unicode character escape.

e.g. google response from OIDC userinfo API:

{
  "sub": "00000000000000000",
  "name": "Michal Hlaváč",
  "given_name": "Michal",
  "family_name": "Hlaváč",
  "profile": "https://plus.google.com/00000000000000000",
  "picture": "https://lh3.googleusercontent.com/a-/AOh14GgPG0866eC-84EjXGai_LFUaqDnmWORLGe3jPvN1A\u003ds96-c",
  "email": "xxx@xxx.com",
  "email_verified": true,
  "gender": "male",
  "locale": "en"
}

If you parse this with javascript or jackson, unicode characater \u003d from picture key is correctly decoded as =, but jettison returns string with \u003d.

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