JSON.TYPE

    Report the type of JSON value at

    Required arguments

    is key to parse.

    path

    Return

    JSON.TYPE returns an array of string replies for each path, specified as the value’s type. For more information about replies, see .

    1. dragonfly> JSON.SET doc $ '{"a":2, "nested": {"a": true}, "foo": "bar"}'
    2. OK
    3. dragonfly> JSON.TYPE doc $..foo
    4. 1) "integer"
    5. 2) "boolean"
    6. dragonfly> JSON.TYPE doc $..dummy

    See also

    | JSON.ARRLEN