mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-30 05:29:41 +01:00
fix Dynamic::Var parse string issue
This commit is contained in:
@@ -2622,6 +2622,10 @@ void VarTest::testJSONDeserializeString()
|
||||
tst = "{ \"a\" : \"1\", \"b\" : \"2\"\n}";
|
||||
a = Var::parse(tst);
|
||||
assertTrue (a.toString() == "{ \"a\" : \"1\", \"b\" : \"2\" }");
|
||||
|
||||
tst = "{ \"message\" : \"escape\\b\\f\\n\\r\\t\", \"path\" : \"\\/dev\\/null\" }";
|
||||
a = Var::parse(tst);
|
||||
assertTrue(a.toString() == "{ \"message\" : \"escape\\b\\f\\n\\r\\t\", \"path\" : \"\\/dev\\/null\" }");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user