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

escapeString compatibility with encoding/json #87

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

barkyq
Copy link

@barkyq barkyq commented Jan 16, 2023

Edited parser.go to escape strings according to RFC8259

@kostaspap
Copy link

kostaspap commented Aug 23, 2023

This seems a valid fix...@valyala do you think this can be merged?

@StarpTech
Copy link

@barkyq could you add tests?

klondikedragon added a commit to klondikedragon/fastjson that referenced this pull request Sep 1, 2024
Tests for string escape conformance with standard lib
@klondikedragon
Copy link

I've added tests in aperturerobotics#2 -- since this repo doesn't seem to be merging PRs in last few years I'm hopeful that it could be merged in this other recent fork (https://github.com/aperturerobotics/fastjson/ - no affiliation). I'd be just as happy seeing these changes merged here too. The lack of proper string escaping can pretty seriously break using serialized JSON when sending it to other systems that are not as forgiving with input characters.

paralin pushed a commit to aperturerobotics/fastjson that referenced this pull request Sep 8, 2024
Tests for string escape conformance with standard lib
papanikge added a commit to panther-labs/fastjson that referenced this pull request Oct 10, 2024
papanikge added a commit to panther-labs/fastjson that referenced this pull request Oct 10, 2024
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

Successfully merging this pull request may close these issues.

4 participants