Added some security measure to make sure that the JSON file is being loaded.