added '/' to the characters escaped in JSON

This commit is contained in:
Alex Fabijanic
2014-05-28 21:05:30 -05:00
parent f306c51e43
commit 5cd3e842e8
2 changed files with 7 additions and 3 deletions

View File

@@ -1231,7 +1231,7 @@ void JSONTest::testStringify()
std::stringstream ss;
jObj.stringify(ss);
assert(ss.str() == "{\"bar/\":0,\"baz\":0,\"foo\\\\\":0,\"q\\\"uote\\\"d\":0}");
assert(ss.str() == "{\"bar\\/\":0,\"baz\":0,\"foo\\\\\":0,\"q\\\"uote\\\"d\":0}");
std::string json = "{ \"Simpsons\" : { \"husband\" : { \"name\" : \"Homer\" , \"age\" : 38 }, \"wife\" : { \"name\" : \"Marge\", \"age\" : 36 }, "
"\"children\" : [ \"Bart\", \"Lisa\", \"Maggie\" ], "