code: function sendObject (req, res, next, obj) {
    setContentType(req, res, ["json", "*/json", "+json"]);
  
    util.debug("Serializing the response as JSON");
    res.json(obj);
  }
docs: Sends the given object (or array) as JSON.
  
  @param   {Request}       req
  @param   {Response}      res
  @param   {function}      next
  @param   {object|array}  obj