Lines
100 %
Functions
#pragma once
#include <string>
#include "source/common/json/json_streamer.h"
#include "source/common/protobuf/protobuf.h"
namespace Envoy {
namespace Json {
class Utility {
public:
/**
* Convert a Protobuf::Value to a JSON string.
* @param value message of type type.googleapis.com/google.protobuf.Value
* @param dest JSON string.
*/
static void appendValueToString(const Protobuf::Value& value, std::string& dest);
* Convert a Protobuf::Struct to a JSON string.
* @param struct_value message of type type.googleapis.com/google.protobuf.Struct
static void appendStructToString(const Protobuf::Struct& struct_value, std::string& dest);
};
} // namespace Json
} // namespace Envoy