26#ifndef ROUTER_SRC_REST_MRS_SRC_HELPER_JSON_RAPID_JSON_TO_TEXT_H_
27#define ROUTER_SRC_REST_MRS_SRC_HELPER_JSON_RAPID_JSON_TO_TEXT_H_
29#ifdef RAPIDJSON_NO_SIZETYPEDEFINE
33#include <rapidjson/document.h>
34#include <rapidjson/writer.h>
45 rapidjson::StringBuffer json_buf;
52 text_value.assign(json_buf.GetString(), json_buf.GetLength());
57 rapidjson::StringBuffer json_buf;
64 text_value.append(json_buf.GetString(), json_buf.GetLength());
rapidjson::GenericValue< rapidjson::UTF8<>, JsonAllocator > JsonValue
Definition: dynamic_config.cc:39
bool json_value(Item *arg, Json_wrapper *result, bool *has_value)
Return the JSON value of the argument in a wrapper.
Definition: item_json_func.cc:983
Define rapidjson::SizeType to be std::uint64_t.
std::string to_string(const rapidjson::Value &value)
Definition: rapid_json_to_text.h:67
void append_rapid_json_to_text(JsonValue *json_value, std::string &text_value)
Definition: rapid_json_to_text.h:56
rapidjson::Writer< T > Writer
Definition: rapid_json_to_text.h:41
void rapid_json_to_text(JsonValue *json_value, std::string &text_value)
Definition: rapid_json_to_text.h:44
ValueType value(const std::optional< ValueType > &v)
Definition: gtid.h:83