Added code to create duplicate JSON output for visualizer.