docs: function (tree, prefix) {
    prefix = prefix || '';
    var result = {};
  
    _.each(tree, function (val, key) {
      if (_.isObject(val))
        _.extend(result, treeToPaths(val, prefix + key + '.'));
      else
        result[prefix + key] = val;
    });
  
    return result;
  }