When you're using an external URL to generate your JSON array, you must do the search logic yourself, and return only the selection of JSON items you relevant to the query typed. (This is to allow you to search databases and what-have!)
By default, your query (data typed in) is found in $_GET['q']
on your server side script.