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

AVRO-3994 [C++] Do not escape solidus in JSON output #2929

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

Gerrit0
Copy link
Contributor

@Gerrit0 Gerrit0 commented May 31, 2024

What is the purpose of the change

The JSON standard permits a solidus (/) to be escaped in strings, but does not require that it be escaped. Most JSON serializers used by other packages/languages do not escape solidus characters, so for consistency it would be nice if Avro also did not perform this useless escape.

Verifying this change

This change is already covered by existing json tests, I've added additional test cases to ensure full coverage.

Documentation

  • Does this pull request introduce a new feature? No
  • If yes, how is the feature documented? N/A

The JSON standard permits a solidus (/) to be escaped in strings, but
does not require that it be escaped. Most JSON serializers used by other
packages/languages do not escape solidus characters, so for consistency
it would be nice if Avro also did not perform this useless escape.
@github-actions github-actions bot added the C++ Pull Requests for C++ binding label May 31, 2024
@martin-g martin-g merged commit 23b0e96 into apache:main Jun 7, 2024
4 checks passed
@martin-g
Copy link
Member

martin-g commented Jun 7, 2024

I just noticed there is no Jira ticket for this. We'll need one for the changelog

@Gerrit0
Copy link
Contributor Author

Gerrit0 commented Jun 8, 2024

I created AVRO-3994 to track this change

@Gerrit0 Gerrit0 changed the title [C++] Do not escape solidus in JSON output AVRO-3994 [C++] Do not escape solidus in JSON output Jun 8, 2024
@Gerrit0 Gerrit0 deleted the skip-useless-escape branch June 8, 2024 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C++ Pull Requests for C++ binding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants