JSON.NUMMULTBY

Since 1.1.0JSON

Syntax

JSON.NUMMULTBY key path number
  • Flags: write
  • ACL categories: @json, @slow, @write
  • Arity: -2

Multiplies each number path matches by number, with the same replies as JSON.NUMINCRBY.

Examples

> JSON.SET d $ '{"age":40}'
OK
> JSON.NUMMULTBY d $.age 2
"[80]"