我得到一个JSON
包含用户的以下(/users.json):
[
[
{ "id": "43343", "project_id": "1", "username": "Amy" }
{ "id": "34244", "project_id": "1", "username": "Tommy" }
],
[
{ "id": "76575", "project_id": "2", "username": "Izzy" }
{ "id": "13322", "project_id": "2", "username": "Sam" }
],
{ "id": "09983", "project_id": "3", "username": "Max" }
]
当项目有一个用户时,我得到一个不在数组中的用户哈希。
我想与所有用户建立一个 Backbone 集合。怎么做?