JSON.OBJKEYS

Since 1.1.0JSON

Syntax

JSON.OBJKEYS key [path]
  • Flags: readonly
  • ACL categories: @json, @read, @slow
  • Arity: -2

Returns the member names of each object path matches, in the order they were added.

Examples

> JSON.SET d $ '{"name":"Ada","age":36}'
OK
> JSON.OBJKEYS d
1) "name"
2) "age"