forked from bblanchon/ArduinoJson
Extracted JsonNodeSerializer
This commit is contained in:
19
srcs/JsonNodeSerializer.h
Normal file
19
srcs/JsonNodeSerializer.h
Normal file
@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
class Print;
|
||||
struct JsonNode;
|
||||
|
||||
class JsonNodeSerializer
|
||||
{
|
||||
public:
|
||||
explicit JsonNodeSerializer(Print& sink)
|
||||
: _sink(sink)
|
||||
{
|
||||
}
|
||||
|
||||
size_t serialize(const JsonNode* node);
|
||||
|
||||
private:
|
||||
Print& _sink;
|
||||
};
|
||||
|
Reference in New Issue
Block a user