added ability to save plot data to json