Saving search results as JSON