How to create JSONModel class of key value is Object or Array
<p>in my response some time is</p>

<pre><code> "url": {
    “full_img”: "imagelink",
    “id”: “1”,
    “small_img”: "imagelink",
   }
</code></pre>

<p>and some time array</p>

<pre><code>"url": [
      {
       “full_img”: "imagelink",
       “id”: “1”,
       “small_img”: "imagelink",
      },
      {
       “full_img”: “imagelink”,
       “id”: “2”,
       “small_img”: "imagelink",
      }]
</code></pre>

<p>in this i create a <a href="https://github.com/icanzilb/JSONModel" rel="nofollow">JsonModel</a> Class but how i can declare that url class as array or as a object, or i have to create two class for url+json? </p>

<p>now if the Url is Array that time i don't have any issue but when it become Object it give Error like.</p>

<p><strong>Error Domain=JSONModelErrorDomain Code=1 "Invalid JSON data. The JSON type mismatches the expected type. Check the error user information." UserInfo={NSLocalizedDescription=Invalid JSON data. The JSON type mismatches the expected type. Check the error user information., kJSONModelTypeMismatch=Property ‘url’ is declared as NSArray* but the corresponding JSON value is not a JSON Array., kJSONModelKeyPath=url</strong></p>