function to return a geojson response from an ring handler