code: function wrappedJson(oldJson, inflectorName){
    let args = Array.prototype.slice.call(arguments, 2);
    if (typeof args[0] === 'object') {
      args[0] = transform(args[0], inflectorName);
    } else if (typeof args[1] === 'object') {
      args[1] = transform(args[1], inflectorName);
    }
    return oldJson.apply(this, args);
  }
docs: The res.json() method takes 3 types of arguments res.json(obj) this is the current best practice res.json(statusCode, obj) this is an older form still accepted res.json(obj, statusCode) this is a crazier form still accepted