json serialization for simulation results (more edits necessary both for
processing, periodic checking, and on the server side writing)