mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 08:48:30 +01:00
Serialize inner objects
This commit is contained in:
@@ -21,8 +21,6 @@ protected:
|
||||
}
|
||||
|
||||
JsonObject object;
|
||||
|
||||
private:
|
||||
StaticJsonBuffer<5> json;
|
||||
};
|
||||
|
||||
@@ -134,12 +132,12 @@ TEST_F(JsonObjectSerializationTests, OneEmptyNestedArray)
|
||||
|
||||
outputMustBe("{\"key\":[]}");
|
||||
}
|
||||
|
||||
*/
|
||||
TEST_F(JsonObjectSerializationTests, OneEmptyNestedObject)
|
||||
{
|
||||
auto nestedObject = JsonObject<1>();
|
||||
auto nestedObject = json.createObject();
|
||||
|
||||
object["key"] = nestedObject;
|
||||
|
||||
outputMustBe("{\"key\":{}}");
|
||||
}*/
|
||||
}
|
||||
Reference in New Issue
Block a user