# Uncaught (in promise): Error: Cannot find a differ supporting object '{"created": of type string

**URL:** <https://forum.ionicframework.com/t/uncaught-in-promise-error-cannot-find-a-differ-supporting-object-created-of-type-string/152390>\
**Category:** ionic-v3\
**Created:** [January 7, 2019, 10:20pm UTC](https://forum.ionicframework.com/t/uncaught-in-promise-error-cannot-find-a-differ-supporting-object-created-of-type-string/152390 "2019-01-07T22:20:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jarv81178](https://avatars.discourse-cdn.com/v4/letter/j/22d042/32.png) [@jarv81178](https://forum.ionicframework.com/u/jarv81178)\
**Post date:** [January 7, 2019, 10:20pm UTC](https://forum.ionicframework.com/t/uncaught-in-promise-error-cannot-find-a-differ-supporting-object-created-of-type-string/152390/1 "2019-01-07T22:20:05Z")

</div>

**Uncaught (in promise): Error: Cannot find a differ supporting object '{“created”:… of type string**

and lower down it says this: **NgFor only supports binding to Iterables such as Arrays**

in my .TS file,

```auto
public items:any = [];

ionViewWillLoad() {
    const moredata = this.navParams.get('data');
    console.log('here we go: '+moredata);
    this.items = JSON.stringify(moredata)
  }

```

in my html file:

```auto
<ion-content padding>
    <ion-item text-wrap *ngFor="let item of items">
      <h1>testings</h1>
      <p>{{item | json}}</p> 
    </ion-item>
</ion-content>

```

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [January 7, 2019, 10:53pm UTC](https://forum.ionicframework.com/t/uncaught-in-promise-error-cannot-find-a-differ-supporting-object-created-of-type-string/152390/2 "2019-01-07T22:53:45Z")

</div>

This is an example of why I keep complaining about `any` abuse. If you give `items` a proper type, your IDE and/or build tools will tell you exactly what is going wrong and where.

Hint: you’re assigning the result of `JSON.stringify` to it, which is a string. As the error message tells you, `ngFor` can’t iterate over strings.

---

<div class="post-metadata">

**Author:** ![jarv81178](https://avatars.discourse-cdn.com/v4/letter/j/22d042/32.png) [@jarv81178](https://forum.ionicframework.com/u/jarv81178)\
**Post date:** [January 7, 2019, 11:04pm UTC](https://forum.ionicframework.com/t/uncaught-in-promise-error-cannot-find-a-differ-supporting-object-created-of-type-string/152390/3 "2019-01-07T23:04:39Z")

</div>

Ok thank, I changed it slightly and now I get: **Cannot find a differ supporting object ‘[object Object]’ of type 'object’**

TS

```auto
items:any = [];

ionViewWillLoad() {
    const moredata = this.navParams.get('data');
    console.log('here we go: '+moredata);
    this.items = moredata
  }

```

html

```auto
<ion-content padding>
    <ion-item text-wrap *ngFor="let item of items">
      <h1>testings</h1>
      <p>{{item | json}}</p> 
    </ion-item>
</ion-content>

```

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [January 7, 2019, 11:07pm UTC](https://forum.ionicframework.com/t/uncaught-in-promise-error-cannot-find-a-differ-supporting-object-created-of-type-string/152390/4 "2019-01-07T23:07:05Z")

</div>

You totally ignored the entire point of my previous post:

**STOP ABUSING `any`**.

---

<div class="post-metadata">

**Author:** ![jarv81178](https://avatars.discourse-cdn.com/v4/letter/j/22d042/32.png) [@jarv81178](https://forum.ionicframework.com/u/jarv81178)\
**Post date:** [January 7, 2019, 11:23pm UTC](https://forum.ionicframework.com/t/uncaught-in-promise-error-cannot-find-a-differ-supporting-object-created-of-type-string/152390/5 "2019-01-07T23:23:39Z")

</div>

ah, so I changed Items to

```auto
items = [];

```

I now get this error:

**Error: 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:** ![jarv81178](https://avatars.discourse-cdn.com/v4/letter/j/22d042/32.png) [@jarv81178](https://forum.ionicframework.com/u/jarv81178)\
**Post date:** [January 8, 2019, 5:56pm UTC](https://forum.ionicframework.com/t/uncaught-in-promise-error-cannot-find-a-differ-supporting-object-created-of-type-string/152390/6 "2019-01-08T17:56:54Z")

</div>

can anyone help here please?
