Outputted results to json file.