quinnj / JSON3.jl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

show for JSON3.Array

bkamins opened this issue · comments

It would be great if JSON3.Array had the same show method as normal array. See:

julia> show(JSON3.read(JSON3.write([1,2,3])))
[
  1,
  2,
  3
]
julia> show(copy(JSON3.read(JSON3.write([1,2,3]))))
[1, 2, 3]

And the problem is that:

  • it is visually verbose
  • it corrupts display if such an object is stored in e.g. data frame (which expects show to produce a single line output for an array

Current master is:

julia> show(JSON3.read(JSON3.write([1,2,3])))
[1, 2, 3]

@quinnj Thank you!