now fetches data as json