1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-13 20:21:48 +03:00
This commit is contained in:
Niels
2015-08-14 14:45:13 +02:00
parent 6f2da1a39a
commit b58a93b8dd
4 changed files with 13 additions and 0 deletions

View File

@ -4692,6 +4692,8 @@ class basic_json
// print character c as \uxxxx
sprintf(&result[pos + 1], "u%04x", int(c));
pos += 6;
// overwrite trailing null character
result[pos] = '\\';
}
else
{