json file just opening as a code and not actually downloading as .json file. Any help would be appreciated.