Repository: mesos Updated Branches: refs/heads/master 8a3dc5534 -> d10ac8e0b
Escaped JSON object keys. All strings in JSON need to be escaped, including the keys in dictionaries / objects. Review: https://reviews.apache.org/r/26723 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/d10ac8e0 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/d10ac8e0 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/d10ac8e0 Branch: refs/heads/master Commit: d10ac8e0b9561c2c08d4ccf9753c7471268513ee Parents: 8a3dc55 Author: Cody Maloney <[email protected]> Authored: Thu Oct 16 16:47:52 2014 -0700 Committer: Adam B <[email protected]> Committed: Thu Oct 16 16:48:19 2014 -0700 ---------------------------------------------------------------------- 3rdparty/libprocess/3rdparty/stout/include/stout/json.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/d10ac8e0/3rdparty/libprocess/3rdparty/stout/include/stout/json.hpp ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/json.hpp b/3rdparty/libprocess/3rdparty/stout/include/stout/json.hpp index 719aa96..2e1f78e 100644 --- a/3rdparty/libprocess/3rdparty/stout/include/stout/json.hpp +++ b/3rdparty/libprocess/3rdparty/stout/include/stout/json.hpp @@ -362,7 +362,7 @@ inline std::ostream& operator << (std::ostream& out, const Object& object) std::map<std::string, Value>::const_iterator iterator; iterator = object.values.begin(); while (iterator != object.values.end()) { - out << "\"" << (*iterator).first << "\":" << (*iterator).second; + out << String((*iterator).first) << ":" << (*iterator).second; if (++iterator != object.values.end()) { out << ","; }
