title: Search to JSON in swift
body: <p>I am trying to find matching keyword in this JSON. For example i want the object that contains sam in either the title, number or array of users. </p>
  
  <pre><code>[
      {
          "title":"List of students",
          "number": "12 stu",
          "users":[{
              "id": 12,
              "name":"tom"
          },
          {
              "id": 1,
              "name":"sam"
          }]
      },
      {
          "title":"List of tutors",
          "number": "2 tut",
          "users":[{
              "id": 1,
              "name":"John"
          },
          {
              "id": 1,
              "name":"Sam"
          }]
      }
  ]
  </code></pre>
  
  <p>With my code, i can only search through title and number but cant search through each users.</p>
  
  <pre><code> func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) {
      arrResf = arrRes.filter({ (item) -&gt; Bool in         
          let heading: NSString = ((item["title"]! as? String)! + (item["number"]! as! String)) as NSString
          return (heading.range(of: searchText, options: NSString.CompareOptions.caseInsensitive).location) != NSNotFound
      })
      self.tableView.reloadData()
  }
  </code></pre>
  
  <p>How do i expand my search to include users.</p>
  
  <p>Thanks.</p>