title: Retrieving data from JSONObject using NSDictionary
body: <p>In this way I store my JSONArray using NSUserDefaults:</p>
  <pre><code> NSArray* notifications = [NSArray arrayWithObjects:todo.dictionary, nil];
       NSData *jsonData = [NSJSONSerialization dataWithJSONObject:notifications options:NSJSONWritingPrettyPrinted error:&amp;writeError];
       NSDictionary *results = [NSJSONSerialization JSONObjectWithData:jsonData options:NSJSONReadingMutableContainers error:nil];
      [[NSUserDefaults standardUserDefaults] setObject:results forKey:@&quot;todosJson&quot;];
  </code></pre>
  <p>After this, if I print my array I get:</p>
  <pre><code>NSDictionary *myJSON = [[NSUserDefaults standardUserDefaults] objectForKey:@&quot;todosJson&quot;];
  NSLog(@&quot;JSON Output: %@&quot;, value);
  </code></pre>
  <p>and:</p>
  <pre><code>JSON Output: (
          {
          category = &quot;cat&quot;;
          dueDate = &quot;&quot;;
          name = dasdasdas;
          note = dasdasd;
      }
     {
          category = &quot;cat2&quot;;
          dueDate = &quot;ddd&quot;;
          name = dasdasdas2;
          note = dasdasd;
      }
  )
  </code></pre>
  <p>How can I get every category of every JSONObject?
  I want to loop over this dictionary and get (in this example) &quot;cat&quot; and &quot;cat2&quot;.</p>