diff --git a/src/ZGroup.jl b/src/ZGroup.jl index dfd1c27..4c6a765 100644 --- a/src/ZGroup.jl +++ b/src/ZGroup.jl @@ -133,10 +133,10 @@ function zgroup(s::AbstractStore, path::String=""; attrs=Dict(); indent_json::Bo isemptysub(s, path) || error("Store is not empty") b = IOBuffer() - if !indent_json - JSON.print(b,d) - else + if indent_json JSON.print(b,d,4) + else + JSON.print(b,d) end s[path,".zgroup"]=take!(b)