ObjectSave()

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

ObjectSave( input=any, filepath=string );

Returns: any

Argument Description
input
any, required

object to serialize

Alias: object

filepath
string, optional

path where lucee should save the object

Examples

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

See also