add xhr_redirect_json support.