Home
last modified time | relevance | path

Searched refs:JSON_ALLOW_TRAILING_COMMAS (Results 1 – 4 of 4) sorted by relevance

/external/libchrome/base/json/
Djson_reader_unittest.cc274 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 …]
Djson_string_value_serializer.cc55 json_string_, allow_trailing_comma_ ? base::JSON_ALLOW_TRAILING_COMMAS in Deserialize()
Djson_reader.h51 JSON_ALLOW_TRAILING_COMMAS = 1 << 0, enumerator
Djson_parser.cc545 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()