JSON: set a rootProperty?

42 views
Skip to first unread message

Pouledodue

unread,
Mar 24, 2012, 10:59:03 PM3/24/12
to Agility.js
hello,

My JSON from server is like this:

================================

{
"data":
[
{
"name": "John",
"stmp": 1333105200
},
{
"name": "Jane",
"stmp": 1333105200
}
],
"success": true
}

=================================

Is it possible to use Agility with JSON like this?
How can I set gather() to read from the "data" var ?

Artur Adib

unread,
Apr 3, 2012, 11:11:23 AM4/3/12
to agil...@googlegroups.com
We haven't implemented this yet, but it might require an additional
callback to .gather() to massage the data before inserting it into the
model.

Pull requests welcome :)

--
Artur Adib
http://twitter.com/arturadib

Jonathan Eunice

unread,
May 5, 2013, 10:21:25 PM5/5/13
to agil...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages