diff options
Diffstat (limited to 'jingle')
-rw-r--r-- | jingle/glue/utils.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jingle/glue/utils.cc b/jingle/glue/utils.cc index ffbd23c0..03730ad 100644 --- a/jingle/glue/utils.cc +++ b/jingle/glue/utils.cc @@ -59,7 +59,8 @@ std::string SerializeP2PCandidate(const cricket::Candidate& candidate) { bool DeserializeP2PCandidate(const std::string& candidate_str, cricket::Candidate* candidate) { - scoped_ptr<Value> value(base::JSONReader::Read(candidate_str, true)); + scoped_ptr<Value> value( + base::JSONReader::Read(candidate_str, base::JSON_ALLOW_TRAILING_COMMAS)); if (!value.get() || !value->IsType(Value::TYPE_DICTIONARY)) { return false; } |