JSON.RESP

Since 1.1.0JSON

Syntax

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

Returns each value path matches in RESP rather than JSON text: null as nil, booleans as true and false, integers as integers, other numbers and strings as bulk strings, an array as [ followed by its elements, an object as { followed by its names and values.

Examples

> JSON.SET d $ '{"name":"Ada","tags":[],"active":true}'
OK
> JSON.RESP d
1) {
2) "name"
3) "Ada"
4) "tags"
5) 1) [
6) "active"
7) true