Skip to content

Commit 8e4a9c8

Browse files
committed
Fix JSON serializer bug for narrow strings
1 parent bf6d1e2 commit 8e4a9c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Release/src/json/json_serialization.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@ void web::json::details::_String::format(std::basic_string<char>& str) const
131131
{
132132
if(m_has_escape_char)
133133
{
134-
str.append(*m_string);
134+
str.append(escape_string(*m_string));
135135
}
136136
else
137137
{
138-
str.append(escape_string(*m_string));
138+
str.append(*m_string);
139139
}
140140
}
141141

0 commit comments

Comments
 (0)