title: how to check valueOfKey is Array or Object when we get it from json in ios
body: <p>I have 2 cases to parse <code>JSON</code> First is:</p>
  
  <pre><code>{
      "post_filter_data": {
          "Items": [
              {
                  "ItemID": "50cb4e46b5d30b0002000009",
                  "ItemName": "Fruit salad test",
                  "ItemPrice": "122.0",
                  "ItemDescription": "test test",
                  "ItemImageUrl": "http://s3.amazonaws.com/menubis-mms-prototype-dev/menubis/assets/50cb4e64b5d30b0002000013/landing_page.jpg?1355501156"
              },
              {
                  "ItemID": "50d0870d910ef2000200000a",
                  "ItemName": "test new",
                  "ItemPrice": "120.0",
                  "ItemDescription": null,
                  "ItemImageUrl": "http://s3.amazonaws.com/menubis-mms-prototype-dev/menubis/assets/50d0871a910ef20002000015/Screenshot-2.png?1355843354"
              }
          ]
      }
  }
  </code></pre>
  
  <p>in which Items is an <code>NSArray</code> and it's parse easily but when only one object I get its through exception.
  Second <code>JSON</code> is in which Items tag has one one object:</p>
  
  <pre><code>{
      "post_filter_data": {
          "Items": {
              "ItemID": "50d1e9cd9cfbd20002000016",
              "ItemName": "test",
              "ItemPrice": "120.0",
              "ItemDescription": "test",
              "ItemImageUrl": "http://s3.amazonaws.com/menubis-mms-prototype-dev/menubis/assets/50d1ea019cfbd20002000022/11949941671787360471rightarrow.svg.med.png?1355934209"
          }
      }
  }
  </code></pre>
  
  <p>and my code is here In which I am parsing it:</p>
  
  <pre><code>NSDictionary *dictMenu=[responseDict valueForKey:@"post_filter_data"];
  NSArray* subMenuArray=[dictMenu valueForKey:@"Items"];
  </code></pre>
  
  <p>Is there any way in which I check it out that <code>valueForKey:@"Items"</code> is <code>Array</code> or <code>Object</code>.</p>