Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Replace '\C' with '\\' instead of '\' #166

Merged
merged 1 commit into from
Oct 21, 2022
Merged

Replace '\C' with '\\' instead of '\' #166

merged 1 commit into from
Oct 21, 2022

Conversation

thatplguy
Copy link
Contributor

When preprocessing JSON to remove control characters, replace escaped control characters with a backslash. This ensures the JSON parser will interpret the escaped control character as an escaped backslash, rather than escaping the next character after the control character.

When preprocessing JSON to remove control characters, replace escaped control
characters with a backslash.  This ensures the JSON parser will interpret the
escaped control character as an escaped backslash, rather than escaping the
next character after the control character.
@thatplguy thatplguy requested review from liujed and mgritter October 21, 2022 20:30
@thatplguy thatplguy merged commit cf01e45 into main Oct 21, 2022
@thatplguy thatplguy deleted the cns/json-escape branch October 21, 2022 23:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants