1313#include " JSONTest.h"
1414#include " CppUnit/TestCaller.h"
1515#include " CppUnit/TestSuite.h"
16-
1716#include " Poco/JSON/Object.h"
1817#include " Poco/JSON/Parser.h"
1918#include " Poco/JSON/Query.h"
2221#include " Poco/JSON/ParseHandler.h"
2322#include " Poco/JSON/PrintHandler.h"
2423#include " Poco/JSON/Template.h"
25-
2624#include " Poco/Path.h"
2725#include " Poco/Environment.h"
2826#include " Poco/File.h"
3230#include " Poco/Latin1Encoding.h"
3331#include " Poco/TextConverter.h"
3432#include " Poco/Nullable.h"
35-
3633#include " Poco/Dynamic/Struct.h"
37-
3834#include < set>
35+ #include < iostream>
36+
3937
4038using namespace Poco ::JSON ;
4139using namespace Poco ::Dynamic;
@@ -1231,9 +1229,9 @@ void JSONTest::testStringify()
12311229 std::ostringstream oss1, oss2;
12321230 Poco::JSON::Stringifier::stringify (obj1, oss1);
12331231 Poco::JSON::Stringifier::stringify (obj2, oss2);
1234- assert (oss1.str () == " {\" payload\" :\"\\\ r\" }" );
1232+ assert (oss1.str () == " {\" payload\" :\"\\ r\" }" );
12351233 std::cout << " \" " << oss1.str () << " \" " << std::endl;
1236- assert (oss2.str () == " {\" payload\" :\"\\\ n\" }" );
1234+ assert (oss2.str () == " {\" payload\" :\"\\ n\" }" );
12371235
12381236 Object jObj (false );
12391237 jObj.set (" foo\\ " , 0 );
@@ -1247,8 +1245,8 @@ void JSONTest::testStringify()
12471245 std::stringstream ss;
12481246 jObj.stringify (ss);
12491247
1250- assert (ss.str () == " {\" backspace\" :\" bs\\\ b\" ,\" bar\\ /\" :0,\" baz\" :0,\" foo\\\\\" :0,"
1251- " \" newline\" :\" nl\\\ n\" ,\" q\\\" uote\\\" d\" :0,\" tab\" :\" tb\ \\t\" }" );
1248+ assert (ss.str () == " {\" backspace\" :\" bs\\ b\" ,\" bar\\ /\" :0,\" baz\" :0,\" foo\\\\\" :0,"
1249+ " \" newline\" :\" nl\\ n\" ,\" q\\\" uote\\\" d\" :0,\" tab\" :\" tb\\ t\" }" );
12521250
12531251 std::string json = " { \" Simpsons\" : { \" husband\" : { \" name\" : \" Homer\" , \" age\" : 38 }, \" wife\" : { \" name\" : \" Marge\" , \" age\" : 36 }, "
12541252 " \" children\" : [ \" Bart\" , \" Lisa\" , \" Maggie\" ], "
0 commit comments