code: function format(response) {
  
  		var newObj = [];
  		var objects = _.get(response, 'objects') || response;
  		
  		if (objects) {
  
  			// check if objects is an array
  			if (Array.isArray(objects)) {
  				_.forEach(objects, function(obj) {
  					newObj.push(expandFields(formatProp(obj)));
  				});
  			}
  			else {
  				newObj = expandFields(formatProp(objects));
  			}
  			return newObj;
  		}
  
  		// if no objects return the raw response
  		return response;
  	}
docs: main formatting function