How To Use Backbone Collection To Fetch This Json Result?
I have the following JSON reply { 'results':[ { 'Product':{ 'id':'1', 'short_name':'Infra - 2200 CAS Sma SIMO onl [DAS.1.1]',
Solution 1:
Your Products
is a Collection
class, not a Collection
object. Changing your code to
new Products().fetch()
or
var Products = new (Backbone.Collection.extend(...))
should work. Besides, if you want to customize how to parse the JSON reply, you could override collection.parse.
Post a Comment for "How To Use Backbone Collection To Fetch This Json Result?"