also serialize the SDocument of the VisualizerInput