Searched refs:JSON_ALLOW_TRAILING_COMMAS (Results 1 – 4 of 4) sorted by relevance
/external/libchrome/base/json/ |
D | json_reader_unittest.cc | 274 JSONReader::Read("[true, false, null, ]", JSON_ALLOW_TRAILING_COMMAS); in TEST() 295 JSON_ALLOW_TRAILING_COMMAS); in TEST() 305 EXPECT_FALSE(JSONReader::Read("[true,, null]", JSON_ALLOW_TRAILING_COMMAS)); in TEST() 317 JSONReader::Read("[true,]", JSON_ALLOW_TRAILING_COMMAS)); in TEST() 331 EXPECT_FALSE(JSONReader::Read("[,]", JSON_ALLOW_TRAILING_COMMAS)); in TEST() 332 EXPECT_FALSE(JSONReader::Read("[true,,]", JSON_ALLOW_TRAILING_COMMAS)); in TEST() 333 EXPECT_FALSE(JSONReader::Read("[,true,]", JSON_ALLOW_TRAILING_COMMAS)); in TEST() 334 EXPECT_FALSE(JSONReader::Read("[true,,false]", JSON_ALLOW_TRAILING_COMMAS)); in TEST() 358 JSON_ALLOW_TRAILING_COMMAS); in TEST() 369 JSON_ALLOW_TRAILING_COMMAS); in TEST() [all …]
|
D | json_string_value_serializer.cc | 55 json_string_, allow_trailing_comma_ ? base::JSON_ALLOW_TRAILING_COMMAS in Deserialize()
|
D | json_reader.h | 51 JSON_ALLOW_TRAILING_COMMAS = 1 << 0, enumerator
|
D | json_parser.cc | 545 if (token == T_OBJECT_END && !(options_ & JSON_ALLOW_TRAILING_COMMAS)) { in ConsumeDictionary() 588 if (token == T_ARRAY_END && !(options_ & JSON_ALLOW_TRAILING_COMMAS)) { in ConsumeList()
|