title: Find items from json array using NodeJS
body: <p>Am trying to search for particular items from a JSON array and return the items...</p>
  <pre><code> result = {
        FF: {
          server: 'deskes.com',
          result: 'succes'
      
        },
           {
          server: 'cleantarge.com',
          result: 'Failed'
      
        },
           {
          server: 'fance34.com',
          result: 'success'
      
        },{
          server: 'deskes.com',
          result: 'Failed'
      
        },
      
      }
  </code></pre>
  <p>I have following JSON data.
  I want to search items based on server</p>
  <p>I used the code</p>
  <pre><code>var arrFound = result.filter(function(item) {
      return item.server == 'deskes.com';
  });
  
  But getting TypeError: Object #&lt;Object&gt; has no method 'filter'
  </code></pre>
  <p>my resulting JSON after searching the data will be:</p>
  <pre><code>result = {
    FF: {
      server: 'deskes.com',
      result: 'succes'
  
    },
  
    {
      server: 'deskes.com',
      result: 'Failed'
  
    }
  
  }
  </code></pre>