title: How to parse response [object object]
body: <p>The request is being sent from onclick of <code>href=url</code>. When this url is hit, I am returning data from server to client as a query string.</p>
  
  <pre><code>res.redirect("/#blog_post_details/?dataUrl="+response[0].attributes);
  </code></pre>
  
  <p>And when I print using:</p>
  
  <pre><code>var posts = DataMixin.getParameterByName(dataUrl);
  console.log('posts', posts); //I get [Object, Object]
  </code></pre>
  
  <p>I also tried with <code>JSON.Stringify</code>:
  <code>console.log('posts', JSON.Stringify(posts));</code> 
  which prints the same with quotes <code>"[Object,Object]"</code></p>
  
  <p>Function to return query string:</p>
  
  <pre><code>getParameterByName: function (name, url) {
      if (!url) {
        url = window.location.href;
      }
      name = name.replace(/[\[\]]/g, "\\$&amp;");
      var regex = new RegExp("[?&amp;]" + name + "(=([^&amp;#]*)|&amp;|#|$)"),
          results = regex.exec(url);
      if (!results) return null;
      if (!results[2]) return '';
      return decodeURIComponent(results[2].replace(/\+/g, " "));
  }
  </code></pre>
  
  <p>However, I am able to print response data on server:</p>
  
  <pre><code>{ created_at: '4/3/2017, 1:23:28 AM',
    details: 'jjj',
    id: 136,
    post_id: '1491162808010',
    title: 'Basic Syntax and Tag declaration',
    url: 'basic_syntax_and_tag_declaration',
    userImage: 'assets/img/spiritual-icon4.png',
    username: 'k999@gmail.com' }
  </code></pre>
  
  <p>Note: I am using expressjs with nodejs</p>