title: Sails.js Custom View for JSON
body: <p>How can we have a custom json on a Sails Model?</p>
  
  <p>I created a inventory model</p>
  
  <pre><code>```
  module.exports = {
  
    attributes: {
      id: {type: 'integer'},
      quantity: {type: 'integer'},
      name: {type: 'string'},
      description: {type: 'string'}
    }
  
  ```
  </code></pre>
  
  <p>However, the default model I get have additional attributes like createdAt , updateAt</p>
  
  <pre><code>Inventory.find({}).sort('id asc').exec(function(err, i){console.log}
  </code></pre>
  
  <p>I would like to have custom attributes on json, like add some attributes
  I know we can custom make by writting code on controller.</p>
  
  <p>But can we have custom view on json? like ruby Jbuilder., write now <code>res.view()</code> only supports HTML.</p>