Skip to content

Commit

Permalink
Merge pull request #259 from KxSystems/format-of-jjd
Browse files Browse the repository at this point in the history
clarified j.jd format
  • Loading branch information
JosieMD authored Apr 15, 2024
2 parents 0e7879f + cf4a20a commit 032bee8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/ref/dotj.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ 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
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]"
```

Expand All @@ -75,4 +75,4 @@ a b
2 "Earthlings"
```

!!! warning "Note serialization and deserialization to and from JSON may not preserve q datatype"
!!! warning "Note serialization and deserialization to and from JSON may not preserve q datatype"

0 comments on commit 032bee8

Please sign in to comment.