ZRColaWS: Stop escaping UTF-8 characters in JSON
JSON is always UTF-8 and there is absolutely no need to escape all non-ASCII characters in output strings. Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
cb324389e4
commit
b13f77ce95
@ -38,7 +38,11 @@ public:
|
||||
}());
|
||||
|
||||
OATPP_CREATE_COMPONENT(std::shared_ptr<oatpp::data::mapping::ObjectMapper>, apiObjectMapper)([] {
|
||||
return oatpp::parser::json::mapping::ObjectMapper::createShared();
|
||||
auto serializerConfig = oatpp::parser::json::mapping::Serializer::Config::createShared();
|
||||
serializerConfig->escapeFlags &= ~oatpp::parser::json::Utils::FLAG_ESCAPE_UTF8CHAR;
|
||||
return oatpp::parser::json::mapping::ObjectMapper::createShared(
|
||||
serializerConfig,
|
||||
oatpp::parser::json::mapping::Deserializer::Config::createShared());
|
||||
}());
|
||||
|
||||
OATPP_CREATE_COMPONENT(std::shared_ptr<oatpp::network::Server>, server)([] {
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit bbe455af60b8f292ed90f84bd02cac1b98c2e232
|
||||
Subproject commit 66e94ea869044b1e8c1bfe78bf2f29fb31605334
|
Loading…
x
Reference in New Issue
Block a user