title: How can I extract only the Twitter id's from this json data?
body: <p>I am trying to store only the Twitter id's from the following json data:</p>
  
  <blockquote>
    <p>(
                    {
                id = chuckschumer;
                type = Facebook;
            },
                    {
                id = SenSchumer;
                type = Twitter;
            },
                    {
                id = SenatorSchumer;
                type = YouTube;
            }
        ),</p>
  </blockquote>
  
  <p>I am working in objective-C. How would I pull only the id's that have a type = Twitter? Any advice is appreciated.</p>
  
  <p>I then attempted to use NSPredicate but my filtered array continues to return as nil. Here is my code:</p>
  
  <blockquote>
  <pre><code>NSPredicate *filter = [NSPredicate predicateWithFormat:@"(type = 'Twitter')"];
  NSArray *filteredItems = [channels filteredArrayUsingPredicate:filter];
  NSLog(@"%@", filteredItems);
  </code></pre>
  </blockquote>
  
  <p>filteredItems continues to return nil, not sure why</p>