How to store json data in jquery?

Can Ember-Data scale well for non CRUD setup of a complicated webapps?

  • I am using EmberJS and now planning to get the ember-data integrated in for models. We are using Rails/MongoDB as backend. I went through examples and updated documentation at the Ember website but there is one thing common across all discussions/examples that we must have the data flowing in CRUD and effectively rails exposes everything as resource in the router.rb In my practical experience the REST APIs for a touch complex backend may not remain CRUD for every model in the data base. There will be lots of REST APIs which deliver JSON on various query strings. How exactly a Data Store can be applied to such cases. Is there any live example/reference to this. In a broad sense extracting from Tom Dale's talk on Ember Data will help in supporting offline data store, but how this whole concept scales for the sites which bank on database queries which are more complex then find_by_id (Rails equivalent) of Ember DS find. Any references of sample sources/projections of DataStore for complex services might be help.

  • Answer:

    Yes we are now able to use EmberJS in a non CRUD setup. We had to write an adapter and the URLs are read for every object. So we define the find/update/create urls and define objects for all the JSONs we process from server. Its highly adaptable. The next thing we had to write was a custom serializer for objects with deep rooted JSONs.

Sudhanshu Saxena at Quora Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.