old_contents: // Get all of our user data
  var data = require('../data.json');
  
  exports.view = function(req, res) {
  	// controller code goes here
  	//var task = req.params.name;
  	//console.log('The taskname is: ' + task);
  	//res.render('task', {'taskname': task});
  	res.render('task', data);
  }
new_contents: // Get all of our user data
  var data = require('../data.json');
  
  exports.view = function(req, res) {
  	res.render('task', data["users"][0]["assignments"][parseInt(req.query.index)]);
  }
  
subject: Update task.js