Go to the documentation of this file.
19 #ifndef GRPC_CORE_LIB_JSON_JSON_H
20 #define GRPC_CORE_LIB_JSON_JSON_H
29 #include "absl/strings/string_view.h"
54 using Object = std::map<std::string, Json>;
55 using Array = std::vector<Json>;
89 Json(
const char*
string,
bool is_number =
false)
96 Json(
char*
string,
bool is_number =
false)
122 template <
typename NumericType>
126 template <
typename NumericType>
Json(const Object &object)
void CopyFrom(const Json &other)
Json & operator=(Object &&object)
bool operator!=(const Json &other) const
Json(Json &&other) noexcept
PHP_PROTO_OBJECT_FREE_END PHP_PROTO_OBJECT_DTOR_END intern array
void MoveFrom(Json &&other)
const Object & object_value() const
Json(char *string, bool is_number=false)
Object * mutable_object()
bool operator==(const Json &other) const
Json & operator=(const Json &other)
const Array & array_value() const
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
JSON (JavaScript Object Notation).
Json & operator=(const Array &array)
Json(const std::string &string, bool is_number=false)
Json & operator=(NumericType number)
Json & operator=(const Object &object)
static Json Parse(absl::string_view json_str, grpc_error_handle *error)
Json & operator=(Array &&array)
std::map< std::string, Json > Object
Json & operator=(std::string &&string)
Json(std::string &&string)
const std::string & string_value() const
Json & operator=(Json &&other) noexcept
Json & operator=(const char *string)
std::string string_value_
Json & operator=(const std::string &string)
std::string * mutable_string_value()
Json(const char *string, bool is_number=false)
static bool to_string(zval *from)
std::string Dump(int indent=0) const
Json & operator=(char *string)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:59:11