change in reading json file

added the json file as a variable