code: protected void readArrayHeader() throws IOException {
          if (jsonParser.nextToken() != JsonToken.START_OBJECT) {
              throw new JsonParseException("Not a Json object", jsonParser.getCurrentLocation());
          }
  
          jsonParser.nextToken();
          if (!jsonParser.getText().equals(RECORDS)) {
              throw new JsonParseException("Not a CloudTrail log", jsonParser.getCurrentLocation());
          }
  
          if (jsonParser.nextToken() != JsonToken.START_ARRAY) {
              throw new JsonParseException("Not a CloudTrail log", jsonParser.getCurrentLocation());
          }
      }
docs: Read the header of an AWS CloudTrail log.
  
  @throws JsonParseException if the log could not be parsed.
  @throws IOException if the log could not be opened or accessed.