title: Searching within subsubdictionaries of an array to return the parent dictionary (Objective C)
body: <p>I have a structured array like the one below</p>
  
  <pre><code> (
          {
          id = 0;
          name = "A";
          tables =         (
                          {
                  comment = "";
                  id = 0;
                  name = "T1";
              },
                          {
                  comment = "";
                  id = 1;
                  name = "T2";
              },
                          {
                  comment = "";
                  id = 4;
                  name = "T3";
              }
          );
      },
          {
          id = 1;
          name = "B";
          tables =         (
                          {
                  comment = "";
                  id = 5;
                  name = "T1";
              },
                          {
                  comment = "";
                  id = 6;
                  name = "T2";
              }
          );
      }
  ) 
  </code></pre>
  
  <p>Given that I know the value of id key of one of the dictionaries (let's take id=6), how can I get its parent dictionary or to be more precise the value of name key (in this case B).</p>
  
  <p>I've tried using predicate strings but the problem is that the parent dictionary has also a key named id, so I get the wrong results. </p>
  
  <p>EDIT: id keys are unique (and it is also not necessary that ids of the elements in the first dictionary have lower intiger values than the ones in the dictionaries with higher indexes)</p>