mardi 19 décembre 2017

Ember Nested Data in JSON Response

I'm having some trouble accessing some nested data in one of my Ember models. Below is the JSON response...

{
  "fields": {
    "header": {
      "name": "header",
      "type": "text",
      "localize": false,
      "options": []
    },
    "body": {
      "name": "body",
      "type": "textarea",
      "localize": false,
      "options": []
    }
  },
  "entries": [
    {
      "header": "header test",
      "body": "body test body test body test",
      "_mby": "5a395e8430c2ddoc683600766",
      "_by": "5a395e8430c2ddoc683600766",
      "_modified": 1513709605,
      "_created": 1513709605,
      "_id": "5a3960253d578doc735798511"
    }
  ],
  "total": 1
}

I'm trying to get the Entries in my template. Perhaps I need some help serializing this with NormalizeResponse? I'm very stumped so please share if you have any ideas!

Thanks!!




Aucun commentaire:

Enregistrer un commentaire