code: private JSONArray makeJsonOutputArray(String stringResult) {
          JSONParser parser = new JSONParser();
          try {
              return (JSONArray) parser.parse(stringResult);
          } catch (ParseException | ClassCastException e) {
              LOGGER.error(
                      "There was a problem parsing the JSONArray response value from the source system:\n"
                              + e.getMessage() + " | " + e.getCause());
              return new JSONArray();
          }
      }
docs: Mutator method for JSON response output array.