title: return url.action as json object mvc
body: <p>My Controller method returns Json object which has url formed as shown below :</p>
  
  <pre><code>return Json(new { url = Url.Action("ShowContact", "Customer", new { vm = contactVM }) }, JsonRequestBehavior.AllowGet);
  </code></pre>
  
  <p>In the ajax call's success code, I want to assign this url to window.location.href so I can redirect to view as per url formed. But return value of ajax call shows plain text value for route value passed as part of url. </p>
  
  <p><img src="https://i.stack.imgur.com/4zrww.png" alt="snapshot from inspect element"> </p>
  
  <p>Hence, I'm not getting whatever route value I want to pass to the redirect action method of my controller. </p>
  
  <p>So what are the options I have in order to pass my route value which is complex c# object including collections? Is there any better approach to achieve what I want to do?</p>
  
  <p>Thanks,</p>