|
| static nlohmann::json | ProtoToTypedJson (const std::string &json_type, const google::protobuf::Message &proto) |
| | Convert proto to a json string.
|
| |
| static nlohmann::json | ProtoToJson (const google::protobuf::Message &proto) |
| | Convert proto to a json string.
|
| |
| static bool | GetString (const nlohmann::json &json, const std::string &key, std::string *value) |
| | Get a string value from the given json[key].
|
| |
| template<class T > |
| static bool | GetNumber (const nlohmann::json &json, const std::string &key, T *value) |
| | Get a number value from the given json[key].
|
| |
| static bool | GetBoolean (const nlohmann::json &json, const std::string &key, bool *value) |
| | Get a boolean value from the given json[key].
|
| |
| static bool | GetStringVector (const nlohmann::json &json, const std::string &key, std::vector< std::string > *value) |
| | Get a string vector from the given json[key].
|
| |
| static bool | GetJsonByPath (const nlohmann::json &json, const std::vector< std::string > &paths, nlohmann::json *value) |
| | Get the json from the given json and path.
|
| |
| static bool | GetStringByPath (const nlohmann::json &json, const std::string &path, std::string *value) |
| | Get a string value from the given json and path.
|
| |
| static bool | GetBooleanByPath (const nlohmann::json &json, const std::string &path, bool *value) |
| | Get a bool value from the given json and path.
|
| |
| template<class T > |
| static bool | GetNumberByPath (const nlohmann::json &json, const std::string &path, T *value) |
| | Get a number value from the given json and path.
|
| |