How to convert Ember object which is returned from store into JSON


#1

How to convert response returned from Ember store to simple JS arrays and JSON objects?. Current component does not currently support direct integration to Ember Data.

Scenario:

1)Mocking the JSON API call using ember cli mirage. 2)Passing the returned response from store to component which does not currently support direct integration to Ember Data, i need to convert the response to JSON objects?. Could you please help with me with that.


#2

You could use just a simple AJAX request. Embler has a good library

http://emberjs.com/api/classes/RSVP.html https://guides.emberjs.com/v2.5.0/models/#toc_the-store-and-a-single-source-of-truth

So your model will return simple json

I found that discuss that can help you some way.