setObjectKey

change the key name of one of the items with a specific index in a source object

Syntax

setObjectKey

Returns

returns (object) the changed object

Parameters

source_object (object)
the source object
index (integer)
the index of the item to change
name (string)
the new key name