Faveod / arel-extensions

Extending Arel
MIT License
143 stars 24 forks source link

json: escape all the "popular" control characters #98

Closed akimd closed 1 year ago

akimd commented 1 year ago

https://datatracker.ietf.org/doc/html/rfc8259:

All Unicode characters may be placed within the quotation marks, except for the characters that MUST be escaped: quotation mark, reverse solidus, and the control characters (U+0000 through U+001F).

We should also escape the remaining ones, using \u.

Where are the tests for this?