adding redirect api json response support