We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
JSON3.pretty
JSON3.write
1 parent 7036a3c commit 04f4d2fCopy full SHA for 04f4d2f
1 file changed
src/saving.jl
@@ -50,7 +50,7 @@ function _save_attrs(writer::AbstractWriter, key_prefix::String, z::Union{ZArray
50
if isempty(attrs(z))
51
return
52
end
53
- write_key(writer, key_prefix*".zattrs", codeunits(sprint(io->JSON3.pretty(io,attrs(z); allow_inf=true))))
+ write_key(writer, key_prefix*".zattrs", codeunits(JSON3.write(attrs(z); allow_inf=true)))
54
55
56
0 commit comments