Skip to content

escapeString compatibility with encoding/json#87

Open
barkyq wants to merge 6 commits intovalyala:masterfrom
barkyq:master
Open

escapeString compatibility with encoding/json#87
barkyq wants to merge 6 commits intovalyala:masterfrom
barkyq:master

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