Skip to content

Commit e6dce64

Browse files
author
Ben Baumgold
committed
nothing/missing to use repr instead of print
1 parent 7b003f4 commit e6dce64

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/TableView.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,8 @@ function table2json(schema, rows, types; requested = nothing)
266266
Tables.eachcolumn(schema, row) do val, ind, name
267267
if val isa Number && isfinite(val) && -js_max_safe_int < val < js_max_safe_int
268268
JSON.show_pair(columnwriter, ser, name, val)
269+
elseif val == nothing || val == missing
270+
JSON.show_pair(columnwriter, ser, name, repr(val))
269271
else
270272
JSON.show_pair(columnwriter, ser, name, sprint(print, val))
271273
end

0 commit comments

Comments
 (0)