API ReferenceJSON
JSONObjKeys
Get the keys of a JSON object
Syntax
Redix.JSONObjKeys(key, path, callback)Parameters
Prop
Type
Returns
Prop
Type
Example
Redix.JSONObjKeys('character:123', '$.stats', function(err, keys)
if not err then
print('Available stats:')
for _, key in ipairs(keys) do
print('- ' .. key)
end
end
end)