adding an if to a for // practice

just that
json.js file using key