|
Zserio C++17 runtime library 1.3.0
Built for Zserio 2.20.0
|
#include <JsonEncoder.h>
Static Public Member Functions | |
| static void | encodeNull (std::ostream &stream) |
| static void | encodeBool (std::ostream &stream, bool value) |
| template<typename T > | |
| static void | encodeIntegral (std::ostream &stream, T value) |
| static void | encodeFloatingPoint (std::ostream &stream, double value) |
| static void | encodeString (std::ostream &stream, std::string_view value) |
Converts zserio values to Json string representation.
Definition at line 18 of file JsonEncoder.h.
Encodes JSON boolean value to the given stream.
| stream | Stream to use. |
| value | Value to encode. |
Definition at line 15 of file JsonEncoder.cpp.
Encodes JSON floating-point value to the given stream.
| stream | Stream to use. |
| value | Value to encode. |
Definition at line 20 of file JsonEncoder.cpp.
|
static |
Encodes JSON integral value to the given stream.
| stream | Stream to use. |
| value | Value to encode. |
Definition at line 65 of file JsonEncoder.h.
|
static |
Encodes JSON null value to the given stream.
| stream | Stream to use. |
Definition at line 10 of file JsonEncoder.cpp.
|
static |
Encodes JSON string value to the given stream.
Note that this method performs escaping necessary to get a proper JSON string.
| stream | Stream to use. |
| value | Value to encode. |
Definition at line 50 of file JsonEncoder.cpp.