javascript - How to create a Backbone Collection with data that is not flat -


I'm not sure how to create a backbone collection using the following data, and how surprising it should be.

In JSON the item property makes sense for me to use as a collection because it already has an array but what other information for the collection is available Is there a good way, or in case of maintaining it, it needs to be referenced in a scene? How should I manage the following data format for archiving?

Here are some examples of data and code:

  {"page": 1, "total": 1000, "item": [{"title": "item 1 "title", "color": "green", "type": [{"standard": "yes", "size": "big"}, {"isStandard", "size": "medium" } "," "{Title}", "title": "title of item 2", "color": "blue", "type": [{"IsStandard": "", "size": " "" "," Color ":" red "," type "," type "," "" 9.9 ":" value ":" value ":" {{"isstandard": "no", "size": "small"}, {"isstandard": "yes", "size": "big"}] }], "Date": "Wednesday 08 October 2014 21:04 : 05 GMT-0500 (CDT) "}   

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -