Project: mesos
Issue MESOS-3409: Refactor the plain JSON parsing in the docker containerizer
Two functions in the Docker-related code take a string and parse it to JSON: * {{Docker::Container::create}} in {{src/docker/docker.cpp}} * {{Token::create}} in {{src/slave/containerizer/provisioners/docker/token_manager.cpp}} This JSON is then validated (lots of if-elses) and used via the {{JSON::Value}} accessors. We could instead use a protobuf and the related Stout JSON->Protobuf conversion function.
Story points: 3