code: function propertiesToJSON(properties) {
  
          var obj = {},
              i,
              l = properties.length;
  
          for (i = 0; i < l; i++) {
              addToJSONRecursively(
                  properties[i].name.split('.'),
                  propertyToString(properties[i]),
                  obj
              );
          }
  
          return obj;
      }
docs: Add each property data to object at specified context
  obj.a.b.c = data;
  property.name // "a.b.c"
  @param properties {Array}
  @returns {Object} properties as object f.e. {a: {b: '...'}}