I'm quite new to backbone.js and currently struggling with structuring the data properly. I have JSON that I need to map to the backbone model/collection.
What's the best way to approach this kind of nested data? resultSet should be a collection of "result" models but how do I include other data like "resultURL", "clearKeywordUrl" etc. ?
"resultUrl":"",
"clearKeywordUrl":"",
"resultTotal": 10,
"nextPageUrl" : ""
"resultSet":[
{
"id":"",
"title":"",
"subTitle":null,
"summary":""
}]