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

EncodeBuilder: Remove support of controls that should not be supported in JSON strings #151

Closed

Conversation

marcsantiago
Copy link

According to the JSON spec these are the only valid and considered controls for JSON

\b Backspace (ascii code 08)
\f Form feed (ascii code 0C)
\n New line
\r Carriage return
\t Tab
" Double quote
\ Backslash character
https://www.json.org/json-en.html

fixes #145

@codecov-commenter
Copy link

codecov-commenter commented Jul 6, 2020

Codecov Report

Merging #151 into master will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master      #151      +/-   ##
===========================================
+ Coverage   99.96%   100.00%   +0.03%     
===========================================
  Files          38        38              
  Lines        5323      5318       -5     
===========================================
- Hits         5321      5318       -3     
+ Misses          1         0       -1     
+ Partials        1         0       -1     
Impacted Files Coverage Δ
encode_builder.go 100.00% <100.00%> (ø)
decode.go 100.00% <0.00%> (+0.68%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1398296...8d61161. Read the comment docs.

… a JSON string

According to the spec https://www.json.org/json-en.html these are the only valid
controls

\b  Backspace (ascii code 08)
\f  Form feed (ascii code 0C)
\n  New line
\r  Carriage return
\t  Tab
\"  Double quote
\\  Backslash character
@marcsantiago marcsantiago deleted the fix-encode-builder branch February 19, 2024 23:26
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.

NullBytes appearing in strings
2 participants