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

Question about JsonEscapeUtil. #861

Open
zoooooway opened this issue Sep 13, 2024 · 0 comments
Open

Question about JsonEscapeUtil. #861

zoooooway opened this issue Sep 13, 2024 · 0 comments

Comments

@zoooooway
Copy link

I noticed that JsonEscapeUtil has the following code:

static String getObligatoryEscapeCode(char c) {
      if (c < 32)
          return ESCAPE_CODES[c];
      if (c == 0x22)
          return "\\\"";
      if (c == 0x5C)
          return "\\/";

      return null;
  }

I'm curious as to why the escape character for 0x5C is ”\/” instead of "\\". Can anyone tell me why?

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