Helper function to read json files from disk