title: Passing object in $stateParams url
body: <p>I am trying to pass an object as param in my url, but i am getting this weird formation. </p>
  
  <blockquote>
    <p><a href="http://localhost:8080/#/%5Bobject%20Object%5D" rel="nofollow">http://localhost:8080/#/%5Bobject%20Object%5D</a> => [object Object]</p>
  </blockquote>
  
  <p>Below is my code on how i am sending the object. </p>
  
  <pre><code>var user = {"user":item};
  $state.go("myState",user);
  </code></pre>
  
  <p>In my routes</p>
  
  <pre><code>.state('myState',{
     url: "/:user",
     templateUrl: "user.html",
     controller: 'User',                  
  });
  </code></pre>
  
  <p>When i try to access the view user page, i get the above url and the data is not able to be accessed via <code>$stateParams.user</code> as its a string <code>[object Object]</code></p>
  
  <p>I am using ui-router version v0.2.15 with angular 1.3.4</p>