hello! i have a problem with SQLRows. i want to return some records as json but simplejson doesn't accept the SQLRows object. what i'm doing now is to convert the object to json, then load it with simplejson which makes it a dictionary and later the whole thing is encoded again as json.
example: records=db(db.item.id==request.get_vars.id).select() raise HTTP(200,{ 'date': '7-9-08', 'records': simplejson.loads(records.json()) }) i tried to use ....select().response which works with simplejson but that gives me a list which will be encoded to json arrays instead of objects. is there an easy way to accomplish this? thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---