hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
json_proto_converter.hpp File Reference
#include <google/protobuf/util/json_util.h>
#include <string>
#include "backend/protobuf/block.hpp"
#include "commands.pb.h"
Include dependency graph for json_proto_converter.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 shared_model
 
 shared_model::converters
 
 shared_model::converters::protobuf
 

Functions

template<typename T >
std::string shared_model::converters::protobuf::modelToJson (const T &message)
 
template<typename T >
boost::optional< T > shared_model::converters::protobuf::jsonToProto (std::string json)
 
template<typename T >
boost::optional< T > shared_model::converters::protobuf::jsonToModel (std::string json)