title: JavaScript Object (JSON) to URL String Format
body: <p>I've got a JSON object that looks something like</p>
  
  <pre><code>{
      "version" : "22",
      "who: : "234234234234"
  }
  </code></pre>
  
  <p>And I need it in a string ready to be sent as a raw http body request.</p>
  
  <p>So i need it to look like</p>
  
  <pre><code>version=22&amp;who=234324324324
  </code></pre>
  
  <p>But It needs to work, for an infinite number of paramaters, at the moment I've got</p>
  
  <pre><code>app.jsonToRaw = function(object) {
      var str = "";
      for (var index in object) str = str + index + "=" + object[index] + "&amp;";
      return str.substring(0, str.length - 1);
  };
  </code></pre>
  
  <p>However there must be a better way of doing this in native js?</p>
  
  <p>Thanks</p>