summaryrefslogtreecommitdiff
path: root/zen/json.h
diff options
context:
space:
mode:
Diffstat (limited to 'zen/json.h')
-rw-r--r--zen/json.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/zen/json.h b/zen/json.h
index 374a3f14..9b85ccb9 100644
--- a/zen/json.h
+++ b/zen/json.h
@@ -104,10 +104,10 @@ std::string jsonEscape(const std::string& str)
else if (static_cast<unsigned char>(c) < 32)
{
- const auto hexDigits = hexify(c);
+ const auto [high, low] = hexify(c);
output += "\\u00";
- output += hexDigits.first;
- output += hexDigits.second;
+ output += high;
+ output += low;
}
else
output += c;
bgstack15