private void checkLenient() throws IOException { if (!lenient) { throw syntaxError("Use JsonReader.setLenient(true) to accept malformed JSON"); } }
throw syntaxError("Unterminated escape sequence"); result += (c - 'A' + 10); } else { throw syntaxError("\\u" + buffer.readUtf8(4)); if (!lenient) throw syntaxError("Invalid escape sequence: \\" + (char) escaped); return (char) escaped;
private void skipQuotedValue(ByteString runTerminator) throws IOException { while (true) { long index = source.indexOfElement(runTerminator); if (index == -1L) throw syntaxError("Unterminated string"); if (buffer.getByte(index) == '\\') { buffer.skip(index + 1); readEscapeCharacter(); } else { buffer.skip(index + 1); return; } } }
while (true) { long index = source.indexOfElement(runTerminator); if (index == -1L) throw syntaxError("Unterminated string");
break; default: throw syntaxError("Unterminated array"); break; default: throw syntaxError("Unterminated object"); throw syntaxError("Expected name"); return peeked = PEEKED_UNQUOTED_NAME; } else { throw syntaxError("Expected name"); throw syntaxError("Expected ':'"); return peeked = PEEKED_NULL; } else { throw syntaxError("Unexpected value"); throw syntaxError("Expected value");
throw syntaxError("Unterminated comment");
private void checkLenient() throws IOException { if (!lenient) { throw syntaxError("Use JsonReader.setLenient(true) to accept malformed JSON"); } }
private void checkLenient() throws IOException { if (!lenient) { throw syntaxError("Use JsonReader.setLenient(true) to accept malformed JSON"); } }
throw syntaxError("Unterminated escape sequence"); result += (c - 'A' + 10); } else { throw syntaxError("\\u" + buffer.readUtf8(4)); if (!lenient) throw syntaxError("Invalid escape sequence: \\" + (char) escaped); return (char) escaped;
throw syntaxError("Unterminated escape sequence"); result += (c - 'A' + 10); } else { throw syntaxError("\\u" + buffer.readUtf8(4)); if (!lenient) throw syntaxError("Invalid escape sequence: \\" + (char) escaped); return (char) escaped;
while (true) { long index = source.indexOfElement(runTerminator); if (index == -1L) throw syntaxError("Unterminated string");
private void skipQuotedValue(ByteString runTerminator) throws IOException { while (true) { long index = source.indexOfElement(runTerminator); if (index == -1L) throw syntaxError("Unterminated string"); if (buffer.getByte(index) == '\\') { buffer.skip(index + 1); readEscapeCharacter(); } else { buffer.skip(index + 1); return; } } }
while (true) { long index = source.indexOfElement(runTerminator); if (index == -1L) throw syntaxError("Unterminated string");
private void skipQuotedValue(ByteString runTerminator) throws IOException { while (true) { long index = source.indexOfElement(runTerminator); if (index == -1L) throw syntaxError("Unterminated string"); if (buffer.getByte(index) == '\\') { buffer.skip(index + 1); readEscapeCharacter(); } else { buffer.skip(index + 1); return; } } }
break; default: throw syntaxError("Unterminated array"); break; default: throw syntaxError("Unterminated object"); throw syntaxError("Expected name"); return peeked = PEEKED_UNQUOTED_NAME; } else { throw syntaxError("Expected name"); throw syntaxError("Expected ':'"); return peeked = PEEKED_NULL; } else { throw syntaxError("Unexpected value"); throw syntaxError("Expected value");
break; default: throw syntaxError("Unterminated array"); break; default: throw syntaxError("Unterminated object"); throw syntaxError("Expected name"); return peeked = PEEKED_UNQUOTED_NAME; } else { throw syntaxError("Expected name"); throw syntaxError("Expected ':'"); return peeked = PEEKED_NULL; } else { throw syntaxError("Unexpected value"); throw syntaxError("Expected value");
throw syntaxError("Unterminated comment");
throw syntaxError("Unterminated comment");