api response working and returning json