Process the closing square bracket of a JSON array. @throws UncheckedIOException if an I/O exception is encountered
()
| 568 | * @throws UncheckedIOException if an I/O exception is encountered |
| 569 | */ |
| 570 | public void endArray() { |
| 571 | expect(JsonType.END_COLLECTION); |
| 572 | if (topContainer() != COLLECTION) { |
| 573 | // The only other thing we could be closing is a map |
| 574 | throw new JsonException( |
| 575 | "Attempt to close a JSON List, but a JSON Object was expected. " + input); |
| 576 | } |
| 577 | containerDepth--; |
| 578 | input.read(); |
| 579 | } |
| 580 | |
| 581 | /** |
| 582 | * Process the opening curly brace of a JSON object. |