API ReferenceJSON
JSONArrAppend
Append one or more values to a JSON array
Syntax
Redix.JSONArrAppend(key, path, value1, value2, ...)Parameters
Prop
Type
Returns
Prop
Type
Examples
-- Append item to inventory
Redix.JSONArrAppend('character:123', '$.inventory', {
item = 'sword',
quantity = 1
})
-- Append multiple items
Redix.JSONArrAppend('character:123', '$.inventory',
{item = 'potion', quantity = 5},
{item = 'shield', quantity = 1}
)