ObjectSave()

edit

serialize a (Serializable) object to a binary representation of the object

ObjectSave( input=any, filepath=string );

Returns: any

Argument Description
input
any, required
edit

object to serialize

Alias: object

filepath
string, optional
edit

path where lucee should save the object

Examples

edit
my_items = { id = 1, name = "item" };
new_object = ObjectSave(input = my_items);
dump(new_object);

See also