Adding feature to fetch data from json