Lines Matching refs:JSONReader
18 const int JSONReader::kStackMaxDepth = 200;
21 static_assert(JSONReader::JSON_PARSE_ERROR_COUNT < 1000,
24 const char JSONReader::kInvalidEscape[] = "Invalid escape sequence.";
25 const char JSONReader::kSyntaxError[] = "Syntax error.";
26 const char JSONReader::kUnexpectedToken[] = "Unexpected token.";
27 const char JSONReader::kTrailingComma[] = "Trailing comma not allowed.";
28 const char JSONReader::kTooMuchNesting[] = "Too much nesting.";
29 const char JSONReader::kUnexpectedDataAfterRoot[] =
31 const char JSONReader::kUnsupportedEncoding[] =
33 const char JSONReader::kUnquotedDictionaryKey[] =
35 const char JSONReader::kInputTooLarge[] = "Input string is too large (>2GB).";
37 JSONReader::JSONReader(int options, int max_depth) in JSONReader() function in base::JSONReader
40 JSONReader::~JSONReader() = default;
43 std::unique_ptr<Value> JSONReader::Read(std::string_view json, in Read()
52 std::unique_ptr<Value> JSONReader::ReadAndReturnError( in ReadAndReturnError()
76 std::string JSONReader::ErrorCodeToString(JsonParseError error_code) { in ErrorCodeToString()
105 std::unique_ptr<Value> JSONReader::ReadToValue(std::string_view json) { in ReadToValue()
110 JSONReader::JsonParseError JSONReader::error_code() const { in error_code()
114 std::string JSONReader::GetErrorMessage() const { in GetErrorMessage()