tests/cpp/common/test_json.cc
// For now Json is quite ignorance about unicode.
For now Json is quite ignorance about unicode.
For now Json is quite ignorance about unicode .
TEST(Json, CopyUnicode) {
  std::string json_str = R"json(
{"m": ["\ud834\udd1e", "\u20ac", "\u0416", "\u00f6"]}
)json";
  Json loaded {Json::Load(StringView{json_str.c_str(), json_str.size()})};
  std::stringstream ss_1;
  Json::Dump(loaded, &ss_1);
  std::string dumped_string = ss_1.str();
  ASSERT_NE(dumped_string.find("\\u20ac"), std::string::npos);
}
TEST ( Json , CopyUnicode ) { std :: string json_str = R" json ( 
{"m": ["\ud834\udd1e", "\u20ac", "\u0416", "\u00f6"]}
 ) json " ; Json loaded { Json :: Load ( StringView { json_str . c_str ( ) , json_str . size ( ) } ) } ; std :: stringstream ss_1 ; Json :: Dump ( loaded , & ss_1 ) ; std :: string dumped_string = ss_1 . str ( ) ; ASSERT_NE ( dumped_string . find ( " \\ " ) , std :: string :: npos ) ; }
For now Json is quite ignorance about unicode.
For now Json is quite ignorance about unicode .