userver: userver/ugrpc/proto_json.hpp File Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
proto_json.hpp File Reference

Utilities for conversion Protobuf -> Json. More...

#include <google/protobuf/util/json_util.h>
#include <userver/formats/json.hpp>
#include <userver/formats/json/serialize.hpp>
+ Include dependency graph for proto_json.hpp:

Go to the source code of this file.

Namespaces

namespace  ugrpc
 Asynchronous gRPC driver.
 
namespace  formats
 Value formats representation, parsing and serialization.
 
namespace  formats::serialize
 Common serializers.
 

Functions

formats::json::Value ugrpc::MessageToJson (const google::protobuf::Message &message)
 Returns formats::json::Value representation of protobuf message.
 
std::string ugrpc::ToString (const google::protobuf::Message &message)
 Converts message to human readable string.
 
std::string ugrpc::ToJsonString (const google::protobuf::Message &message)
 Returns Json-string representation of protobuf message.
 
json::Value formats::serialize::Serialize (const google::protobuf::Message &message, To< json::Value >)
 

Detailed Description

Utilities for conversion Protobuf -> Json.

Definition in file proto_json.hpp.