Why is this script reading in the json file?