docs: private JSONArray parseJSONArray() throws ParseException {
          expect('[');
          skipWhitespace();
          if (peek() == ']') {
              // Empty array
              next();
              return new JSONArray(Collections.emptyList());
          }
  
          final List<Object> elements = new ArrayList<>();
          boolean first = true;
          while (peek() != ']') {
              if (first) {
                  first = false;
              } else {
                  expect(',');
              }
              elements.add(parseJSON());
          }
          expect(']');
          return new JSONArray(elements);
      }