Read the next element of the JSON input stream as a boolean value. @return true or false @throws JsonException if the next element isn't the expected boolean @throws UncheckedIOException if an I/O exception is encountered
()
| 181 | * @throws UncheckedIOException if an I/O exception is encountered |
| 182 | */ |
| 183 | public boolean nextBoolean() { |
| 184 | expect(JsonType.BOOLEAN); |
| 185 | return read(input.peek() == 't' ? "true" : "false", Boolean::valueOf); |
| 186 | } |
| 187 | |
| 188 | /** |
| 189 | * Read the next element of the JSON input stream as an object property name. |