title: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayM objectForKey:]: unrecognized selector sent to instance
body: <p>I'm trying to alter the following array like this.
  Actual Response:</p>
  
  <pre><code> errFlag = 0;
      errMsg = "Got Slot successfully.";
      errNum = 128;
      slots =     (
                  {
              date = "";
              slot =             (
                                  {
                      booked = 1;
                      end = 1510822800;
                      "end_dt" = "09:00:00";
                      id = 5a02a0372279511b1c968a10;
                      locId = "";
                      radius = 1;
                      "slot_price" = 20;
                      start = 1510815600;
                      "start_dt" = "07:00:00";
                  }
              );
          }
      );
  </code></pre>
  
  <p>The response I want it like...</p>
  
  <pre><code>{
   "start_dt" = "07:00:00";
                      }
  {
   "start_dt" = "11:00:00";
                      }
  {
   "start_dt" = "14:00:00";
                      }
  </code></pre>
  
  <p>I Attempted this on following way but I ended up with an excemption.</p>
  
  <pre><code>if (requestType == RequestTypeGetAllMetSlots)
          {
  
              // altering the response into an array
              NSDictionary *slotResultsDict = response[@"slots"];
              NSLog(@"Priniting timeSlotResponseDict%@",slotResultsDict);
              timeSlotResponseArray = [[slotResultsDict objectForKey:@"slot"] valueForKey:@"start_dt"];
              NSLog(@"Priniting timeSlotResponseArray%@",timeSlotResponseArray);
  
  
          }
  </code></pre>
  
  <p>Following is the Exeception I got.. Please help me..</p>
  
  <pre><code> Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayM objectForKey:]: unrecognized selector sent to instance
  </code></pre>