Add JsonOptions enum class to contain options passed to getJSON methods

This commit is contained in:
Mo Morsi
2019-06-08 01:10:33 -04:00
committed by Manoj doshi
parent c2138c4e88
commit f8365f5009
77 changed files with 382 additions and 270 deletions

View File

@@ -89,7 +89,7 @@ public:
STParsedJSONObject parsed ("test", jsonObject);
BEAST_EXPECT(parsed.object);
std::string const& serialized (
to_string (parsed.object->getJson(0)));
to_string (parsed.object->getJson(JsonOptions::none)));
BEAST_EXPECT(serialized == json);
}
else
@@ -114,7 +114,7 @@ public:
if (BEAST_EXPECT(parsed.object))
{
std::string const& serialized(
to_string(parsed.object->getJson(0)));
to_string(parsed.object->getJson(JsonOptions::none)));
BEAST_EXPECT(serialized == goodJson);
}
}
@@ -138,7 +138,7 @@ public:
if (BEAST_EXPECT(parsed.object))
{
std::string const& serialized(
to_string(parsed.object->getJson(0)));
to_string(parsed.object->getJson(JsonOptions::none)));
BEAST_EXPECT(serialized == expectedJson);
}
}
@@ -311,8 +311,8 @@ public:
if (object1.getSerializer () == object2.getSerializer ())
{
log <<
"O1: " << object1.getJson (0) << '\n' <<
"O2: " << object2.getJson (0) << std::endl;
"O1: " << object1.getJson (JsonOptions::none) << '\n' <<
"O2: " << object2.getJson (JsonOptions::none) << std::endl;
fail ("STObject error 4");
}
else