API ReferenceJSON
JSONObjLen
Get the number of keys in a JSON object
Syntax
Redix.JSONObjLen(key, path, callback)Parameters
Prop
Type
Returns
Prop
Type
Example
Redix.JSONObjLen('character:123', '$.stats', function(err, count)
if not err then
print('Character has ' .. count .. ' stats')
end
end)