title: Resources error for object cotaining array as one field. Angularjs
body: <p>Hi I am recieving an object from database that as array in it as one of the field. Here is sample of it </p>
  
  <pre><code>[
    {
      "isAlive": true,
      "idNumber": "34543"
      "newStruct": [
        {
          "login_name": "tjames",
          "message": "approved",
        },
        {
          "login_name": "tjames",
          "message": "approved",
        },
        {
           "login_name": "tjames",
          "message": "approved",
        }
      ],
      "ts": "/Date(-62135575200000-0600)/"
    }
  ]
  
  App.factory("AppRepository", ['$resource', function ($resource) {
      return {
  
          Overview: $resource('/api/Overview/Getinfo/:id', { id: '@id' }, {
              update: { method: 'PUT' },
              query: {method: 'GET', isArray: false}
      });
  }]);
  </code></pre>
  
  <p>Problem I am running into it is when I set </p>
  
  <pre><code>isArray:false it gives me error "Expected response to contain an object but got an array"
  </code></pre>
  
  <p>When i set</p>
  
  <pre><code> isArray: True I get apposite 
  "Expected response to contain an array but got an object"
  </code></pre>
  
  <p>Please let me know how to fix it. Thanks </p>