Filter Json data in jquery easyautocomplete
<p>The below code works fine. I am asking for a help that I want to filter the json data, that is I want to display labels of corresponding id which is greater than or equal to 3.</p>

<p>In this case, should display only "India" and "France" in suggestion list. </p>

<p>Please note that I used <a href="http://easyautocomplete.com/guide" rel="nofollow">Easy autocomplete plugin</a>.</p>

<p>Would really appreciate if anyone can help me with this. Thanks in advance</p>

<p>below is my json file</p>

<blockquote>
  <p>countries.json</p>
</blockquote>

<pre><code>[
{
"id": "0.1",
"label": "America" },{
"id": "0.9",
"label": "UAE" },{
"id": "3.2",
"label": "India"},{
"id": "3.02",
"label": "France" } ]
</code></pre>

<p>HTML is </p>

<blockquote>
  <p>index.php</p>
</blockquote>

<pre><code>&lt;div class="form-group"&gt;
                    &lt;input id="city" type="text" name="city" class="form-control" /&gt;
                &lt;/div&gt;
</code></pre>

<p>and script is:</p>

<blockquote>
  <p>script.js</p>
</blockquote>

<pre><code>$(function() { var options = { url: "../review/countries.json", getValue: function(element) {
 return element.label; list: {
match: {
  enabled: true
} }; $("#city").easyAutocomplete(options);
</code></pre>