From cf4a20a3883834952565eafb9a27c87d0c799b7c Mon Sep 17 00:00:00 2001 From: JosieMD <114172432+JosieMD@users.noreply.github.com> Date: Mon, 15 Apr 2024 14:37:37 +0100 Subject: [PATCH] clarified j.jd format --- docs/ref/dotj.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/ref/dotj.md b/docs/ref/dotj.md index fa6f9a650..175ca85be 100644 --- a/docs/ref/dotj.md +++ b/docs/ref/dotj.md @@ -40,7 +40,7 @@ Where - `x` is a K object - `d` is a dictionary -returns the result of `.j.j` unless ``d`null0w``, in which case `0w` and `-0w` are mapped to `"null"`. +returns the result of `.j.j` unless d[`null0w] is 1b, in which case `0w` and `-0w` are mapped to `"null"`. (Since V3.6 2018.12.06.) ```q @@ -48,7 +48,7 @@ q).j.j -0w 0 1 2 3 0w "[-inf,0,1,2,3,inf]" q).j.jd(-0w 0 1 2 3 0w;()!()) "[-inf,0,1,2,3,inf]" -q).j.jd(-0w 0 1 2 3 0w;(!). 1#'`null0w,1b) +q).j.jd(-0w 0 1 2 3 0w;([null0w:1b])) "[null,0,1,2,3,null]" ``` @@ -75,4 +75,4 @@ a b 2 "Earthlings" ``` -!!! warning "Note serialization and deserialization to and from JSON may not preserve q datatype" \ No newline at end of file +!!! warning "Note serialization and deserialization to and from JSON may not preserve q datatype"