forked from bblanchon/ArduinoJson
JsonVariant automatically promotes to JsonObject or JsonArray on write
This commit is contained in:
1 parent
5aea1363cc
commit
6f55d1e58f
53 files changed
+1197
-541
No files matched your search
@@ -12,7 +12,7 @@ void check(T value, const std::string &expected) {
|
||||
REQUIRE(expected.size() == returnValue);
|
||||
}
|
||||
|
||||
TEST_CASE("serializeMsgPack(JsonObjectSubscript)") {
|
||||
TEST_CASE("serializeMsgPack(MemberProxy)") {
|
||||
DynamicJsonDocument doc(4096);
|
||||
deserializeJson(doc, "{\"hello\":42}");
|
||||
JsonObject obj = doc.as<JsonObject>();
|
||||
@@ -23,7 +23,7 @@ TEST_CASE("serializeMsgPack(JsonObjectSubscript)") {
|
||||
REQUIRE(result == "*");
|
||||
}
|
||||
|
||||
TEST_CASE("serializeMsgPack(JsonArraySubscript)") {
|
||||
TEST_CASE("serializeMsgPack(ElementProxy)") {
|
||||
DynamicJsonDocument doc(4096);
|
||||
deserializeJson(doc, "[42]");
|
||||
JsonArray arr = doc.as<JsonArray>();
|
||||
|
||||
Reference in new issue
Block a user