Skip to content

Instantly share code, notes, and snippets.

@sgreenfield
Created January 23, 2012 02:41
Show Gist options
  • Save sgreenfield/1660133 to your computer and use it in GitHub Desktop.
Save sgreenfield/1660133 to your computer and use it in GitHub Desktop.
Need this from the server...
//This is JavaScript object is an example of what I need returned from the server.
{
events: [
{
id: 1, userid: 1
},
{
id: 2, userid: 1
},
{
id: 3, userid: 2
},
{
id: 4, userid: 2
},
{
id: 5, userid: 2
},
{
id: 6, userid: 3
},
{
id: 7, userid: 3
}
],
users: [
{
id: 1,
name: 'Person X'
},
{
id: 2,
name: 'Person Y'
},
{
id: 3,
name: 'Person Z'
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment