title: Sending javascript dictionary with array values via ajax through a bookmarklet
body: <p>I have data that I want to send through an ajax GET request in following format - 
  {'url':['www.google.com','www.yahoo.com']}</p>
  
  <p>Here is the ajax request - $.ajax({type:'GET',url:'http://www.example.com/',processData:false,data:JSON.stringify({'url':['www.google.com','www.yahoo.com']})</p>
  
  <p>And since I am doing this in a bookmarklet it looks like this - </p>
  
  <pre><code>&lt;a href="javascript:function iprl5() {  $.ajax({
  type:'GET',
  url:'http://www.example.com/',
  processData:false,
  data:JSON.stringify({'url':['www.google.com','www.yahoo.com']}),
  dataType:'json', 
  contentType: 'application/json',
  success: function(json){$('#confirm').html('&lt;p&gt;Thanks!&lt;/p&gt;');},
  error: function(){$('#confirm').html('&lt;p&gt;Something went wrong :( please reload&lt;/p&gt;');} })}} iprl5(); void(0)"&gt;BLAH&lt;/a&gt;
  </code></pre>
  
  <p>The problem is that when I hit the bookmarklet browser sends a get request like this - </p>
  
  <pre><code>GET http://www.example.com/?{"url":["www.google.com","www.yahoo.com"]}
  </code></pre>
  
  <p>I want to send a json as a string but unable to do so, I also tried encodeURIComponent to encode string but that didn't work either.</p>