Functions | |
| template<typename T > | |
| std::string | modelToJson (const T &message) |
| template<typename T > | |
| iroha::expected::Result< T, std::string > | jsonToProto (std::string json) |
| iroha::expected::Result<T, std::string> shared_model::converters::protobuf::jsonToProto | ( | std::string | json | ) |
Converts json string into arbitrary protobuf object
| T | type of model which json converts to |
| json | is the json string |
| std::string shared_model::converters::protobuf::modelToJson | ( | const T & | message | ) |
Converts protobuf model object into json string
| T | is the type of converting message |
| message | is the message to be converted |