fetching and parsing json file