JSON.MERGE

Operates on JSON documents stored under a BetterKV key.

Syntax

JSON.MERGE <key> <path> <json>

Parameters

  • key: Primary key to read or mutate.
  • path: JSONPath-like location inside the stored JSON document.
  • json: JSON document literal or scalar encoded as JSON.

Returns

Returns a Redis-compatible reply whose exact shape depends on the command and selected options.

Examples

JSON.MERGE profile $ '{"flags":{"beta":true}}'

BetterKV Notes

  • Group: Keyspace.
  • Access: Mixed.
  • Status: Implemented in BetterKV with command-specific semantics.