Fixed bug which causes JSON file to be loaded in as a string instead of JSON data