title: Custom box with autocomplete from Google/Bing. Is there any way to read the received json file?
body: <p>I try to build a webpage with a search box. I want to take the autocomplete options from Bing (for example).</p>
  
  <p>It is possible to get the autocomplete from bing by: </p>
  
  <p><a href="http://api.bing.com/osjson.aspx?query=YOUR_QUERY" rel="nofollow">http://api.bing.com/osjson.aspx?query=YOUR_QUERY</a></p>
  
  <p>I wrote some code with an autocomplete widget, asking to get the json as jsonp, and I succeed to see (in Fiddler) that the json arrives. But because it arrives only as a json, and not in the required format, I get parseError. (I saw it in the error function. The success function is not called)</p>
  
  <p>The relevant part from my code is:</p>
  
  <pre><code>    $( "#mySesearchBox" ).autocomplete({
        source: function( request, response ) {
          $.ajax({
            url: "http://api.bing.com/osjson.aspx?query=" + request.term,
            dataType: "jsonp",
            ...
  </code></pre>
  
  <p>Is there any way to overcome this problem?</p>
  
  <p>I thought about running some server that will get such a query, will ask for the json from Bing and will respond in the required format. However, I prefer more simple solution.</p>
  
  <p>Any advice?</p>