Updates a key with a value.
structUpdate(structure, key, value)
→ returns boolean
Change value of structure item
myStruct = {a: 1, b: 2, c: 3, d: 4};
structUpdate(myStruct,'c',15);
writeDump(serializeJSON(myStruct));
Expected Result: {"A":1,"B":2,"C":15,"D":4}
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.