savePrediction function

Saves the prediction dataframe to a json file