Skip to content

Commit

Permalink
🐛 fix for #656
Browse files Browse the repository at this point in the history
A complete rewrite of the string escape function. It now provides codepoint-to-\uxxxx escaping. Invalid UTF-8 byte sequences are not escaped, but copied as-is. I haven’t spent much time optimizing the code - but the library now agrees with Python on every single Unicode character’s escaping (see file test/data/json_nlohmann_tests/all_unicode_ascii.json).

Other minor changes: replaced "size_t" by "std::size_t"
  • Loading branch information
nlohmann committed Jul 17, 2017
1 parent 8a9133c commit 21d2398
Show file tree
Hide file tree
Showing 4 changed files with 1,112,330 additions and 131 deletions.
Loading

0 comments on commit 21d2398

Please sign in to comment.