title: how to filter json object in swift?
body: <p>How can I filter these json object? I mean I want print only patients whose id is equal to 3. </p>
  
  <pre><code>var patients: Array&lt;AnyObject&gt;? if let obj: AnyObject = manager?.responseObject as AnyObject? {
              if let pats = obj["patients"] as! Array&lt;AnyObject&gt;? {
                  patients = pats
              }
          }
  </code></pre>
  
  <p>This is my printed variable</p>
  
  <pre><code>{
      patients =     (
                  {
              city = "\U0411\U0430\U044f\U043d\U0445\U043e\U043d\U0433\U043e\U0440";
              district = "\U0411\U0430\U044f\U043d\U0445\U043e\U043d\U0433\U043e\U0440";
              firstname = fdfsdf;
              lastname = dsfgsdfg;
              "patient_id" = 1064;
              "patient_status" = 3;
              "register_id" = "\U0430\U043083040411";
          }
                  {
              city = "\U0411\U0430\U044f\U043d\U0445\U043e\U043d\U0433\U043e\U0440";
              district = "\U0411\U0430\U044f\U043d\U0445\U043e\U043d\U0433\U043e\U0440";
              firstname = dwfw;
              lastname = dsfsdf;
              "patient_id" = 1056;
              "patient_status" = 1;
              "register_id" = "\U0443\U044399111134";
          }
  }
  </code></pre>