From 94d126b3ce7e1f3100897240884a00f3b7e96575 Mon Sep 17 00:00:00 2001 From: "tc@google.com" Date: Tue, 29 Jul 2008 00:21:49 +0000 Subject: Update the JSONValueSerializer to have a flag to allow trailing commas. By default, we don't support this when deserializing JSON, but the user can enable this. BUG=1295713 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/json_value_serializer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome/common/json_value_serializer.cc') diff --git a/chrome/common/json_value_serializer.cc b/chrome/common/json_value_serializer.cc index 0049fc6..02b727f 100644 --- a/chrome/common/json_value_serializer.cc +++ b/chrome/common/json_value_serializer.cc @@ -49,7 +49,7 @@ bool JSONStringValueSerializer::Deserialize(Value** root) { if (!json_string_) return false; - return JSONReader::Read(*json_string_, root); + return JSONReader::Read(*json_string_, root, allow_trailing_comma_); } /******* File Serializer *******/ -- cgit v1.1