Search on nested object issue

can anyone here please guide how touse the search component in a nested objects such as :

users:[ { 
          user1: {  firstname: 'John',
           lastname 'Doe'
       roles: {

         role1: 'Manager',
       role2: 'Admin'
    },

 user2: {  firstname: 'Jane',
    lastname 'Doe'
   roles: {

       role1: 'Secretary',
       role2: 'stadf'
    }
  }]

Thank in advance for helping

never mind I have found a solution how to do it.

Please contribute to the community and share the solution.

ok I will share it later

please see here what helped me solve my issue https://stackoverflow.com/questions/45938499/ionic-3-filter-nested-json-with-ionic-searchbar