add `.serialize` method to runtimelog
Created by: PhilipVinc
This moves the json serialization stuff to RuntimeLog
from JsonLog
, so that it's possible to save to disk the data.
The idea is still that JsonLog
saves to json while running and RuntimeLog
does not, but now if you're playing with RuntimeLog
and want to save its content to disk you can.
(This was triggered by a question in slack)