title: Response object value comes in array and some time object , how identify in my code?
body: <p>My response have many values, but one is filter object that are coming some time in array nad some time in object.</p>
  
  <ul>
  <li>How to find this one is object or array, i am using Gson in android.  </li>
  <li><p>Comming in array like this,</p>
  
  <pre><code>"filter": [
                {
                 "id": 3,
                 "level": "0",
                 "parent_id": 0,
                 "category_name": "Women",
                 "LEVEL1": [
                               {
                                "id": 130,
                                "level": "1",
                                "parent_id": 3,
                                "parent_name": "Women",
                                "category_name": "Saree",
                                "LEVEL2": [
                                    {
                                      "id": 152,
                                      "level": "2",
                                      "parent_id": 130,
                                      "parent_name": "Saree",
                                      "parent_parent_id": 3,
                                      "parent_parent_name": "Women",
                                      "category_name": "Party Wear"
                                    }
                          ]
                  }
               ]
  </code></pre></li>
  <li><p>Some time coming like this, </p>
  
  <pre><code>"filter": {
             "0": {
                   "attribute_title": "Brand",
                   "attribute_id": 1,
                   "childs": [
                              {
                               "child_attribute_name": "Ambica",
                               "child_attribute_id": 530,
                               "count": 38
                              }
                             ]
           }
  </code></pre></li>
  <li><p>I am using Gson then how to identify in code,</p></li>
  </ul>