Process the closing curly brace of a JSON object. @throws UncheckedIOException if an I/O exception is encountered
()
| 371 | * @throws UncheckedIOException if an I/O exception is encountered |
| 372 | */ |
| 373 | public void endObject() { |
| 374 | expect(JsonType.END_MAP); |
| 375 | Container expectation = stack.removeFirst(); |
| 376 | if (expectation != Container.MAP_NAME) { |
| 377 | // The only other thing we could be closing is a map |
| 378 | throw new JsonException("Attempt to close a JSON Map, but not ready to. " + input); |
| 379 | } |
| 380 | input.read(); |
| 381 | } |
| 382 | |
| 383 | /** |
| 384 | * Discard the pending JSON property value. |