ObjectSave()
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
editmy_items = { id = 1, name = "item" };
new_object = ObjectSave(input = my_items);
dump(new_object);
See also
- Objects
- ObjectEquals()
- ObjectLoad()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)