test: monitor: open json dump file for writing