From 2695073ed67f652b167b5e1cc4371795ce0e879e Mon Sep 17 00:00:00 2001 From: TJ Zhang Date: Fri, 25 Oct 2024 10:19:46 -0700 Subject: [PATCH] doc update Signed-off-by: TJ Zhang --- node/src/server-modules/GlideJson.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/node/src/server-modules/GlideJson.ts b/node/src/server-modules/GlideJson.ts index 45da84d993..92d3ae35a8 100644 --- a/node/src/server-modules/GlideJson.ts +++ b/node/src/server-modules/GlideJson.ts @@ -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.