Writing json results to file 'username.json'