code: function(item) {
    var result;
  
    if (_.isArray(item)) {
      result = [];
      _.each(item, function(value) {
        result.push(parseItem(value));
      });
      return result;
    }
  
    /* otherwise */
    if (_.isObject(item)) {
      return parseObject(item);
    }
  
    /* otherwise -- just a normal (non-compound) item */
    return item;
  }
docs: Parse an item - it might be an Array, an Object, or a POD.