add method to fetch json from web.