convert to new discovery resource and json responses