docs: private String mapToJSONString(Map<String, Object> eventMap) {
          JSONObject jsonEvent = new JSONObject();
          String jsonString = null;
          map2JSON(jsonEvent, eventMap);
          try {
              if (!compact) {
                  jsonString = jsonEvent.serialize(true).replaceAll("\\\\/", "/");
              } else {
                  jsonString = jsonEvent.toString();
              }
          } catch (IOException e) {
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                  Tr.debug(tc, "Unexpected error converting AuditEvent to JSON String", e);
              }
          }
          return jsonString;
      }