| 26 | |
| 27 | template <> |
| 28 | inline Try<mesos::v1::CapabilityInfo> parse(const std::string& value) |
| 29 | { |
| 30 | Try<JSON::Object> json = parse<JSON::Object>(value); |
| 31 | if (json.isError()) { |
| 32 | return Error(json.error()); |
| 33 | } |
| 34 | |
| 35 | return protobuf::parse<mesos::v1::CapabilityInfo>(json.get()); |
| 36 | } |
| 37 | |
| 38 | |
| 39 | template <> |