fetching data from server using json
removed unnecessary logs