Added last json write to file.