Fixing code and adding an example of how to parse a json file