// ArduinoJson - https://arduinojson.org // Copyright © 2014-2024, Benoit BLANCHON // MIT License #include #include TEST_CASE("shallowCopy()") { JsonDocument doc1, doc2; doc1["b"] = "c"; doc2["a"].shallowCopy(doc1); REQUIRE(doc2.as() == "{\"a\":{\"b\":\"c\"}}"); }