#include <userver/formats/json/string_builder.hpp>
SAX like builder of JSON string. Use with extreme caution and only in performance critical part of your code.
Prefer using WriteToStream function to add data to the StringBuilder.
Definition at line 36 of file string_builder.hpp.
Classes | |
class | ArrayGuard |
class | ObjectGuard |
Public Types | |
using | Value = formats::json::Value |
Public Member Functions | |
std::string | GetString () const |
std::string_view | GetStringView () const |
void | WriteNull () |
void | WriteString (std::string_view value) |
void | WriteBool (bool value) |
void | WriteInt64 (int64_t value) |
void | WriteUInt64 (uint64_t value) |
void | WriteDouble (double value) |
void | Key (std::string_view sw) |
ONLY for objects/dicts: write key. | |
void | WriteRawString (std::string_view value) |
Appends raw data. | |
void | WriteValue (const Value &value) |
Definition at line 39 of file string_builder.hpp.
std::string formats::json::StringBuilder::GetString | ( | ) | const |