MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / endArray

Method endArray

java/src/org/openqa/selenium/json/JsonInput.java:570–579  ·  view source on GitHub ↗

Process the closing square bracket of a JSON array. @throws UncheckedIOException if an I/O exception is encountered

()

Source from the content-addressed store, hash-verified

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.

Calls 3

expectMethod · 0.95
topContainerMethod · 0.95
readMethod · 0.65