Output results to JSON