![]()  | 
  
    MySQL 9.5.0
    
   Source Code Documentation 
   | 
 
#include "utils/utils_json.h"#include <rapidjson/error/en.h>#include <rapidjson/prettywriter.h>#include <rapidjson/writer.h>#include <algorithm>#include <cstring>#include "mysqlrouter/jit_executor_value.h"#include "mysql/strings/dtoa.h"#include "utils/utils_encoding.h"#include "native_wrappers/polyglot_object_bridge.h"#include "polyglot_wrappers/types_polyglot.h"#include "utils/utils_string.h"Classes | |
| class | shcore::anonymous_namespace{utils_json.cc}::My_writer< T > | 
| Raw JSON wrapper with custom conversion of the Double value using the my_gcvt function ported from the server, which generates a string value with the most number of significat digits and thus precision.  More... | |
| class | shcore::anonymous_namespace{utils_json.cc}::My_pretty_writer< T > | 
| Pretty JSON wrapper with custom conversion of the Double value using the my_gcvt function ported from the server, which generates a string value with the most number of significat digits and thus precision.  More... | |
| class | shcore::anonymous_namespace{utils_json.cc}::String_stream | 
| class | shcore::JSON_dumper::Writer_base | 
| class | shcore::anonymous_namespace{utils_json.cc}::Stream_writer< Writer > | 
| class | shcore::anonymous_namespace{utils_json.cc}::Raw_writer | 
| class | shcore::anonymous_namespace{utils_json.cc}::Pretty_writer | 
Namespaces | |
| namespace | shcore | 
| namespace | shcore::anonymous_namespace{utils_json.cc} | 
| namespace | shcore::json | 
| namespace | shcore::json::anonymous_namespace{utils_json.cc} | 
Functions | |
| size_t | shcore::anonymous_namespace{utils_json.cc}::fmt_double (double d, char *buffer, size_t buffer_len) | 
| auto | shcore::json::anonymous_namespace{utils_json.cc}::missing_value (const char *name) | 
| auto | shcore::json::anonymous_namespace{utils_json.cc}::missing_uint_value (const char *name) | 
| JSON | shcore::json::parse (std::string_view json) | 
| Parses a JSON string.  More... | |
| JSON | shcore::json::parse_object_or_throw (std::string_view json) | 
| Parses a JSON string, input is expected to be a JSON object.  More... | |
| std::string | shcore::json::required (const JSON &json, const char *name, bool allow_empty=false) | 
| Fetches a string value of a required field.  More... | |
| uint64_t | shcore::json::required_uint (const JSON &json, const char *name) | 
| Fetches an unsigned integer value of a required field.  More... | |
| std::optional< std::string > | shcore::json::optional (const JSON &json, const char *name, bool allow_empty=false) | 
| Fetches a string value of an optional field.  More... | |
| std::optional< uint64_t > | shcore::json::optional_uint (const JSON &json, const char *name) | 
| Fetches an unsigned integer value of an optional field.  More... | |
| std::string | shcore::json::to_string (const JSON &json) | 
| Converts a JSON object to a string.  More... | |
| std::string | shcore::json::to_pretty_string (const JSON &json) | 
| Converts a JSON object to a nicely formatted string.  More... | |