# NgFor only supports binding to Iterables such as Arrays

**URL:** <https://forum.ionicframework.com/t/ngfor-only-supports-binding-to-iterables-such-as-arrays/60701>\
**Category:** ionic-v3\
**Created:** [August 16, 2016, 1:47pm UTC](https://forum.ionicframework.com/t/ngfor-only-supports-binding-to-iterables-such-as-arrays/60701 "2016-08-16T13:47:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stdeemene](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/stdeemene/32/113556_2.png) [@stdeemene](https://forum.ionicframework.com/u/stdeemene)\
**Post date:** [August 16, 2016, 1:47pm UTC](https://forum.ionicframework.com/t/ngfor-only-supports-binding-to-iterables-such-as-arrays/60701/1 "2016-08-16T13:47:53Z")

</div>

Cannot find a differ supporting object ‘[object Object]’ of type ‘object’. NgFor only supports binding to Iterables such as Arrays.

---

<div class="post-metadata">

**Author:** ![reedrichards](https://avatars.discourse-cdn.com/v4/letter/r/34f0e0/32.png) [@reedrichards](https://forum.ionicframework.com/u/reedrichards)\
**Post date:** [August 16, 2016, 4:59pm UTC](https://forum.ionicframework.com/t/ngfor-only-supports-binding-to-iterables-such-as-arrays/60701/2 "2016-08-16T16:59:02Z")

</div>

Had that problem too when I jumped to Ionic2.

Turned out I wasn’t converting correctly my http.get son results (with map(res =\> res.json()), see example below) and that’s why I was trying to iterate on object instead of over an array.

If it could help, here an http.get I do and below some post I read when I faced that problem too, hope it could lead you to a solution.

```
return new Promise((resolve, reject) => {
        this.http.get('http://blablablah.com/blablah', options)
            .map(res => res.json()) // <--------- Map the json I had forgot
            .subscribe((results:MyObject[]) => {
                resolve(results);
            }, (errorResponse:Response) => {
                reject(errorResponse);
            });
    });

```

Some read:

> <https://stackoverflow.com/questions/36839223/error-display-in-ngfor-json-array-object>

> <https://stackoverflow.com/questions/37955140/angular2-rc-ngfor-only-supports-binding-to-iterables-such-as-arrays-error>

[https://webcake.co/object-properties-in-angular-2s-ngfor/](https://webcake.co/object-properties-in-angular-2s-ngfor/)
