From df0519bea5390ac8f3d9a0e168e2f799bd068985 Mon Sep 17 00:00:00 2001 From: YongDo-Hyun Date: Sat, 27 Dec 2025 01:06:26 +0300 Subject: feat: enhance error handling in ozlibstream and improve JSON escaping in json_formatter; add make_numeric_tag for cleaner tag creation Signed-off-by: YongDo-Hyun --- src/text/json_formatter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/text') diff --git a/src/text/json_formatter.cpp b/src/text/json_formatter.cpp index bd882c15d2..06a9c54f60 100644 --- a/src/text/json_formatter.cpp +++ b/src/text/json_formatter.cpp @@ -217,7 +217,7 @@ namespace //anonymous default: if (static_cast(c) < 32 || c == 127) { // Control characters, escape as \u00XX - os << "\\u00" << std::hex << std::setw(2) << std::setfill('0') << static_cast(static_cast(c)); + os << "\\u00" << std::hex << std::setw(2) << std::setfill('0') << static_cast(c); } else { os << c; } -- cgit 0.0.5-2-1-g0f52