I am working on an application in Backbone.js and Jquery which requires a JSON to be like this:-
{
"FolderSummaryResponse": {
"Status": "SUCCESS",
"FolderItem": [
{
"Desc": "Immediate Action Required",
"ID": "1",
"RecordCnt": "0",
"SeqCd": "1",
"SubFolderItemList": {
"FolderItem": [
{
"Desc": "Customers to Call",
"ID": "10",
"RecordCnt": "0",
"SeqCd": "0"
},
{
"Desc": "PO Connect",
"ID": "17",
"RecordCnt": "0",
"SeqCd": "7",
"SubFolderItemList": {
"FolderItem": [
{
"Desc": "Inbound",
"ID": "73",
"RecordCnt": "0",
"SeqCd": "0"
},
{
"Desc": "Outbound",
"ID": "74",
"RecordCnt": "0",
"SeqCd": "1"
}
]
}
}
]
}
}
. Basically a parent and children kind of structure. How can I a create a Model and collection for this in backbone? Please help me as I am completely new to backbone.js .