quinnj / JSON3.jl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pretty printing

tanhevg opened this issue · comments

Thanks for the lovely package!

One feature that I miss from JSON2.jl is pretty printing. One quick way of providing this would be just lifting pretty.jl from there into this package. Ideally it would probably be neater from the users' point of view to have a keyword argument in write(..., pretty=true), such that we don't need to blow up the string in memory for large structs.

To do this, we'll need to port over

https://github.com/quinnj/JSON2.jl/blob/master/src/pretty.jl

(note to self) :)

Implemented in #67