may want to wrap this in a try/catch as you can't assume the file is correctly formatted as json