Remove linefeed from JSON to string conversion

This commit is contained in:
Vinnie Falco
2015-05-29 13:43:30 -07:00
parent ff2453e42c
commit 4b91a18532
3 changed files with 1 additions and 6 deletions

View File

@@ -190,7 +190,6 @@ FastWriter::write ( const Value& root )
{
document_ = "";
writeValue ( root );
document_ += "\n";
return std::move (document_);
}

View File

@@ -36,10 +36,6 @@ struct Output_test : ripple::RPC::TestOutputSuite
// Compare with the original version.
auto expected = Json::FastWriter().write (value);
expected.resize (expected.size() - 1);
// For some reason, the FastWriter puts a carriage return on the end of
// every piece of Json it outputs.
expectResult (expected);
expectResult (valueDesc);
expectResult (jsonAsString (value));

View File

@@ -91,7 +91,7 @@ public:
{
testcase ("parse json array");
std::string const json (
"{\"Template\":[{\"ModifiedNode\":{\"Sequence\":1}}]}\n");
"{\"Template\":[{\"ModifiedNode\":{\"Sequence\":1}}]}");
Json::Value jsonObject;
bool parsedOK (parseJSONString(json, jsonObject));