read json file only once