Welcome Guest, Not a member yet? Register   Sign In
Datamapper to_json question
#3

[eluser]WanWizard[/eluser]
'to_json()', like most other Datamapper method, operate on the current object, so that is what you get returned.

If you want to convert the entire result set, use 'all_to_json()' instead. Note that this has some bugs fixed that are not part of the 1.8.2 distribution, so you might want to fetch the latest source from bitbucket.


Messages In This Thread
Datamapper to_json question - by El Forum - 01-17-2012, 03:16 PM
Datamapper to_json question - by El Forum - 05-14-2012, 07:29 PM
Datamapper to_json question - by El Forum - 05-15-2012, 02:52 AM
Datamapper to_json question - by El Forum - 05-15-2012, 08:20 AM
Datamapper to_json question - by El Forum - 05-15-2012, 09:26 AM
Datamapper to_json question - by El Forum - 05-15-2012, 10:22 AM
Datamapper to_json question - by El Forum - 05-15-2012, 10:53 AM
Datamapper to_json question - by El Forum - 05-15-2012, 11:45 AM
Datamapper to_json question - by El Forum - 05-15-2012, 02:24 PM
Datamapper to_json question - by El Forum - 05-15-2012, 02:26 PM
Datamapper to_json question - by El Forum - 05-15-2012, 02:44 PM
Datamapper to_json question - by El Forum - 05-15-2012, 05:12 PM
Datamapper to_json question - by El Forum - 05-15-2012, 05:34 PM
Datamapper to_json question - by El Forum - 05-15-2012, 05:43 PM
Datamapper to_json question - by El Forum - 05-16-2012, 05:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB