GRPC Core  18.0.0
Namespaces | Functions
json_util.h File Reference
#include <grpc/support/port_platform.h>
#include "absl/strings/numbers.h"
#include "absl/strings/str_cat.h"
#include "src/core/lib/iomgr/exec_ctx.h"
#include "src/core/lib/json/json.h"

Go to the source code of this file.

Namespaces

 grpc_core
 Round Robin Policy.
 

Functions

bool grpc_core::ParseDurationFromJson (const Json &field, grpc_millis *duration)
 
template<typename NumericType , typename ErrorVectorType >
bool grpc_core::ExtractJsonNumber (const Json &json, const std::string &field_name, NumericType *output, ErrorVectorType *error_list)
 
template<typename ErrorVectorType >
bool grpc_core::ExtractJsonBool (const Json &json, const std::string &field_name, bool *output, ErrorVectorType *error_list)
 
template<typename ErrorVectorType >
bool grpc_core::ExtractJsonString (const Json &json, const std::string &field_name, std::string *output, ErrorVectorType *error_list)
 
template<typename ErrorVectorType >
bool grpc_core::ExtractJsonArray (const Json &json, const std::string &field_name, const Json::Array **output, ErrorVectorType *error_list)
 
template<typename ErrorVectorType >
bool grpc_core::ExtractJsonObject (const Json &json, const std::string &field_name, const Json::Object **output, ErrorVectorType *error_list)
 
template<typename NumericType , typename ErrorVectorType >
bool grpc_core::ExtractJsonType (const Json &json, const std::string &field_name, NumericType *output, ErrorVectorType *error_list)
 
template<typename ErrorVectorType >
bool grpc_core::ExtractJsonType (const Json &json, const std::string &field_name, bool *output, ErrorVectorType *error_list)
 
template<typename ErrorVectorType >
bool grpc_core::ExtractJsonType (const Json &json, const std::string &field_name, std::string *output, ErrorVectorType *error_list)
 
template<typename ErrorVectorType >
bool grpc_core::ExtractJsonType (const Json &json, const std::string &field_name, const Json::Array **output, ErrorVectorType *error_list)
 
template<typename ErrorVectorType >
bool grpc_core::ExtractJsonType (const Json &json, const std::string &field_name, const Json::Object **output, ErrorVectorType *error_list)
 
template<typename T , typename ErrorVectorType >
bool grpc_core::ParseJsonObjectField (const Json::Object &object, const std::string &field_name, T *output, ErrorVectorType *error_list, bool required=true)
 
template<typename ErrorVectorType >
bool grpc_core::ParseJsonObjectFieldAsDuration (const Json::Object &object, const std::string &field_name, grpc_millis *output, ErrorVectorType *error_list, bool required=true)