diff --git a/src/base.jl b/src/base.jl index 8ee6c5a303..d5df433183 100644 --- a/src/base.jl +++ b/src/base.jl @@ -162,7 +162,7 @@ end Serializes a system to a JSON string. """ function to_json(sys::System, filename::AbstractString) - IS.prepare_for_serialization(sys.data, filename) + IS.prepare_for_serialization!(sys.data, filename) return IS.to_json(sys, filename) end