The existing System.to_json method is fine. We are really dumping data to more than just JSON, though. We write time series data to SQLite and Arrow files. It would be good to have a System.save("my_directory") that creates a new directory and saves all files in it. The user could then easily create an achive (.zip/.tar) and share it. We could also consider making the archive file automatic and support deserializing from it.
The existing
System.to_json
method is fine. We are really dumping data to more than just JSON, though. We write time series data to SQLite and Arrow files. It would be good to have aSystem.save("my_directory")
that creates a new directory and saves all files in it. The user could then easily create an achive (.zip/.tar) and share it. We could also consider making the archive file automatic and support deserializing from it.