jeudi 19 mai 2016

How can I serialize a Simple array payload in ember?

I am pretty new to Ember. I have a service which returns a simple array like

[
  "abc",
  "bcd",
  "cde",
  "def",
  "efg"
]

I tried a lot of ways that might be stupid and googled a lot. Sadly I could not find a solution though I believe it may not be too tough.

I got the payload in serializer as pasted above and was able to log the response. From there what is to be returned and what serializer is apt is my current problem. Kindly ask me if any further details are required to figure this out. I am not posting much so that I can keep it simple and understandable. Any help is appreciated.




Aucun commentaire:

Enregistrer un commentaire