Replaced printTo() with serializeJson()

* Added `serializeJson()` and `serializeJsonPretty()`
* Added `measureJson()` and `measureJsonPretty()`
* Removed `printTo()` and `prettyPrintTo()`
* Removed `measureLength()` and `measurePrettyLength()`
This commit is contained in:
Benoit Blanchon committed 2018-03-01 09:24:58 +01:00
1 parent 7a2a64803a
commit 83d73c93f7
38 files changed
+238 -233

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ TEST_CASE("JsonObject::remove()") {
}
std::string result;
obj.printTo(result);
serializeJson(obj, result);
REQUIRE("{\"a\":0,\"c\":2}" == result);
}
}