code: public Val[] nextArray(String expectedName) throws IOException {
        beginArray(expectedName);
        List<Val> array = new ArrayList<>();
        while (peek() != JsonTokenType.END_ARRAY) {
           array.add(nextValue());
        }
        endArray();
        return array.toArray(new Val[array.size()]);
     }
docs: Reads the next array with an expected name and returns a list of its values
  
  @param expectedName The name that the next array should have
  @return A list of the values in the array
  @throws IOException Something went wrong reading the array or the expected name was not found