write results to outJson.txt