Skip to content

Commit

Permalink
doc update
Browse files Browse the repository at this point in the history
Signed-off-by: TJ Zhang <tj.zhang@improving.com>
  • Loading branch information
TJ Zhang committed Oct 25, 2024
1 parent 2bd3b67 commit 2695073
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions node/src/server-modules/GlideJson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,15 @@ export class GlideJson {
}

/**
* Retrieve the JSON value at the specified `path` within the JSON document stored at
* `key`. The returning result is in the Valkey or Redis OSS Serialization Protocol (RESP).
* Retrieve the JSON value at the specified `path` within the JSON document stored at `key`.
* The returning result is in the Valkey or Redis OSS Serialization Protocol (RESP).
* JSON null is mapped to the RESP Null Bulk String.
* JSON Booleans are mapped to RESP Simple string.
* JSON integers are mapped to RESP Integers.
* JSON doubles are mapped to RESP Bulk Strings.
* JSON strings are mapped to RESP Bulk Strings.
* JSON arrays are represented as RESP arrays, where the first element is the simple string [, followed by the array's elements.
* JSON objects are represented as RESP object, where the first element is the simple string {, followed by key-value pairs, each of which is a RESP bulk string.
*
* @param client - The client to execute the command.
* @param key - The key of the JSON document.
Expand Down

0 comments on commit 2695073

Please sign in to comment.