MySQL 9.7.0
Source Code Documentation
text_to.h File Reference
#include <optional>
#include <type_traits>
#include <my_rapidjson_size_t.h>
#include <rapidjson/document.h>
#include <rapidjson/memorystream.h>
#include <rapidjson/reader.h>
#include "mysql/harness/stdx/expected.h"

Go to the source code of this file.

Namespaces

namespace  helper
 
namespace  helper::json
 

Functions

template<typename Handler , typename Container >
rapidjson::ParseResult helper::json::parse (Handler *handler, const Container &c)
 Convert text representation of json object/value to type defined by 'Handler'. More...
 
template<typename Container >
bool helper::json::text_to (rapidjson::Document *doc, const Container &c)
 
bool helper::json::text_to (rapidjson::Document *doc, const std::string &str)
 
bool helper::json::text_to (rapidjson::Document *doc, const char *str)
 
bool helper::json::text_to (rapidjson::Document::Object *obj, const std::string &str)
 
bool helper::json::text_to (rapidjson::Value *val, const std::string &str)
 
template<typename Handler , typename Container , typename... HandlerArgs>
stdx::expected< typename Handler::Result, rapidjson::ParseErrorCode > helper::json::text_to_handler (const Container &c, HandlerArgs &&...args)
 Convert text representation of json object/value to type defined by 'Handler'. More...
 
rapidjson::Document helper::json::text_to_document (const std::string &str)