mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-17 23:23:47 +02:00
fix Dynamic::Var parse string issue
This commit is contained in:
parent
b435db6e8e
commit
b8320ccb7b
@ -606,7 +606,6 @@ std::string Var::parseJSONString(const std::string& val, std::string::size_type&
|
||||
result += val[pos];
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -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\" }");
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user