docs: function onSuccess(fn, options) {
          if (options === void 0) { options = {}; }
          options['mimeType'] = 'application/json';
          if (!_.isUndefined(fn)) {
              options['success'] = fn;
          }
          if (!options['method']) {
              options['method'] = "POST";
          }
          // the default (unsorted) order is important for Karaf runtime
          options['canonicalNaming'] = false;
          options['canonicalProperties'] = false;
          if (!options['error']) {
              options['error'] = function (response) { return defaultJolokiaErrorHandler(response, options); };
          }
          return options;
      }