well it converts the dict of Rows fine and dandy for me :P i was just curious, i'm parsing it into my own dict object formatted for my javascripts
-Thadeus On Thu, Feb 4, 2010 at 5:14 PM, mdipierro <[email protected]> wrote: > Almost. > > def index(): > return dict(results=db(db.table.id > 0).select().as_dict()) > > you can call it with http://.....index.json, .xml and it will convert. > It can convert a dict of list of dict but not a dict of Rows. > > On Feb 4, 5:05 pm, Thadeus Burgess <[email protected]> wrote: >> if you... >> >> return dict(results=db(db.table.id > 0).select()) >> >> and it is json web2py returns something like >> >> "1": {"id": 1, "name": "jessie", "update_record": "<function at ...>", >> "delete_record": <function at ...>, "count": 5} >> >> -Thadeus >> >> On Thu, Feb 4, 2010 at 4:43 PM, mdipierro <[email protected]> wrote: >> > ? >> >> > On Feb 4, 4:26 pm, Thadeus Burgess <[email protected]> wrote: >> >> Is update_record and delete_record supposed to serialize with json ? >> >> >> -Thadeus >> >> > -- >> > You received this message because you are subscribed to the Google Groups >> > "web2py-users" group. >> > To post to this group, send email to [email protected]. >> > To unsubscribe from this group, send email to >> > [email protected]. >> > For more options, visit this group >> > athttp://groups.google.com/group/web2py?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/web2py?hl=en. > > -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.

