-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior. If feasible, please provide a SSCCE - usually, it will make the process much easier and faster.
TEST(JSONParser, TestUnicode)
try
{
String json_str = R"json({"default":"\u0050\u0050"})json";
Poco::JSON::Parser parser;
Poco::Dynamic::Var result = parser.parse(json_str);
const auto & obj = result.extract<Poco::JSON::Object::Ptr>();
auto default_val = obj->get("default");
Poco::JSON::Object::Ptr json = new Poco::JSON::Object();
json->set("default", default_val);
std::stringstream ss;
json->stringify(ss);
std::cout << ss.str() << std::endl;
ASSERT_TRUE(ss.str() == json_str);
}
CATCHExpected behavior
A clear and concise description of what you expected to happen.
Logs
If applicable, add logs to help explain your problem.
Screenshots
If applicable, add screenshots to help explain your problem.
Please add relevant environment information:
- OS Type and Version
- POCO Version
- Third-party product (eg. database or library) type and version
Additional context
Add any other context about the problem here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels