saving results as json