title: How to extract value from dictionary using objective c
body: <p>I have the below dictionary and I want to extract the date and <code>number_of_movement</code>.</p>
  
  <pre><code>{
      id = 0;
      jsonrpc = "2.0";
      result =     {
          fetalMovements =         {
              "10|22|2014-08-04 00:00:00" =             {
                  date =                 {
                      date = "2014-08-04 00:00:00";
                      timezone = "Europe/Prague";
                      "timezone_type" = 3;
                  };
                  "fetal_movement_id" = 10;
                  "number_of_movement" = 3;
                  "pregnancy_id" = 22;
              };
              "11|22|2014-08-03 00:00:00" =             {
                  date =                 {
                      date = "2014-08-03 00:00:00";
                      timezone = "Europe/Prague";
                      "timezone_type" = 3;
                  };
                  "fetal_movement_id" = 11;
                  "number_of_movement" = 3;
                  "pregnancy_id" = 22;
              };
              "12|22|2014-08-03 00:00:00" =             {
                  date =                 {
                      date = "2014-08-03 00:00:00";
                      timezone = "Europe/Prague";
                      "timezone_type" = 3;
                  };
                  "fetal_movement_id" = 12;
                  "number_of_movement" = 3;
                  "pregnancy_id" = 22;
              };
          };
      };
  }
  </code></pre>
  
  <p>I use this code and I extract result and fetalMovements but I get nil for date and number_of_movement.</p>
  
  <pre><code>NSDictionary *Fetaljson = [NSJSONSerialization JSONObjectWithData:GetMovURL options:kNilOptions error:&amp;error];
  NSDictionary *fetalmovDic = [Fetaljson objectForKey:@"result"];
  NSDictionary *MovmenteDic= [fetalmovDic objectForKey:@"fetalMovements"];
  NSDictionary *DAteDic = [MovmenteDic objectForKey:@"date"]; 
  NSMutableArray *array = [DAteDic valueForKey:@"number_of_movement"];
  </code></pre>