JsonObjectStream.h
Go to the documentation of this file.
29 JsonObjectStream(Json::SerializationFormat format, size_t capacity = 1024) : doc(capacity), format(format)
59 getData();
75 getData();
81 {
JsonObjectStream(Json::SerializationFormat format, size_t capacity=1024)
Create a JSON object stream with a specific format.
Definition: JsonObjectStream.h:37
int available() override
Return the total length of the stream.
Definition: JsonObjectStream.h:75
uint16_t readMemoryBlock(char *data, int bufSize) override
Read a block of memory.
bool isFinished() override
Check if all data has been read.
Definition: JsonObjectStream.h:81
JsonObject getRoot()
Get the JSON root node.
Definition: JsonObjectStream.h:59
uint16_t readMemoryBlock(char *data, int bufSize) override
Read a block of memory.
Definition: JsonObjectStream.h:65
size_t measure(const TSource &source, SerializationFormat format=JSON_FORMAT_DEFAULT)
Compute the size of a serialized Json object for a specified format.
Definition: ArduinoJson.h:132
SerializationFormat
Describes format of serialized Json object.
Definition: ArduinoJson.h:114
bool isFinished() override
Check if all data has been read.
Definition: MemoryDataStream.h:86
size_t serialize(const TSource &source, TDestination &destination, SerializationFormat format=JSON_FORMAT_DEFAULT)
Write a Json object in a specified format.
Definition: ArduinoJson.h:160
StreamType getStreamType() const override
Get the stream type.
Definition: JsonObjectStream.h:51