forked from bblanchon/ArduinoJson
Extracted class JsonContainer
This commit is contained in:
1 parent
d66a7adc22
commit
b0e43f7538
9 files changed
+63
-31
No files matched your search
@@ -0,0 +1,16 @@
|
||||
#include "JsonContainer.h"
|
||||
|
||||
#include "Internals/JsonNodeSerializer.h"
|
||||
#include "Internals/StringBuilder.h"
|
||||
|
||||
size_t JsonContainer::printTo(char* buffer, size_t bufferSize) const
|
||||
{
|
||||
ArduinoJson::Internals::StringBuilder sb(buffer, bufferSize);
|
||||
return printTo(sb);
|
||||
}
|
||||
|
||||
size_t JsonContainer::printTo(Print& p) const
|
||||
{
|
||||
JsonNodeSerializer serializer(p);
|
||||
return serializer.serialize(_node);
|
||||
}
|
||||
Reference in new issue
Block a user