Convert javascript object to model in the spine

is there any way to parse an object in javascript for a model in Backbone.js here is my object

javascript object

+6
source share
2 answers

You can do

model = new YourModel(your_object) 
+11
source
 new Backbone.Model({familyLogin: 'userLogin1', login: 'eg'}); 
+6
source

All Articles