Rows yes: rows = db().select() rows.json()
Row no: row = rows[0] row.json() # not defined but simplejson.dumps(row.as_dict()) On Tuesday, 11 September 2012 07:51:56 UTC-5, Alan Etkin wrote: > > Aren't dal Row and Rows classes capable of returning json also? > > On Tuesday, September 11, 2012 9:28:52 AM UTC-3, LightDot wrote: >> >> Native JSON features look really interesting. >> >> Basically, postgres can return a row or an array as JSON now. And >> validate JSON. Seems quite handy! >> >> Regards, >> Ales >> >> On Tuesday, September 11, 2012 10:21:54 AM UTC+2, Niphlod wrote: >>> >>> Happy september with the 9.2 release for everybody >>> >>> http://wiki.postgresql.org/wiki/What%27s_new_in_PostgreSQL_9.2 >>> >>> http://www.postgresql.org/about/news/1415/ >>> >> --