Redix LogoDocumentation
API ReferenceJSON

JSONArrLen

Get the length of a JSON array

Syntax

Redix.JSONArrLen(key, path, callback)

Parameters

Prop

Type

Returns

Prop

Type

Example

Redix.JSONArrLen('character:123', '$.inventory', function(err, length)
    if not err then
        print('Inventory slots used:', length)
        if length >= 50 then
            print('Inventory is full!')
        end
    end
end)