mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-16 12:02:14 +02:00
25 lines
416 B
C++
25 lines
416 B
C++
/*
|
|
* Arduino JSON library
|
|
* Benoit Blanchon 2014 - MIT License
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "JsonValue.h"
|
|
#include "Print.h"
|
|
#include "Printable.h"
|
|
|
|
class JsonObjectBase : public Printable
|
|
{
|
|
public:
|
|
|
|
size_t printTo(char* buffer, size_t bufferSize)
|
|
{
|
|
StringBuilder sb(buffer, bufferSize);
|
|
return printTo(sb);
|
|
}
|
|
|
|
virtual size_t printTo(Print& p) const = 0;
|
|
};
|
|
|