On Tuesday, November 8, 2011 4:20:32 PM UTC-5, Zphen wrote: > > I've been working around it to date but been thinking of delving into > the world of the JSON serializer to see how hard it would be to make > the _extra fields come through properly. >
web2py's custom JSON serializer first calls the Rows.as_list() method (or the Row.as_dict()) method, so it would be better to alter the as_list() and as_dict() methods so the results will be useful for more than just JSON. > Problem is that DAL would also have to be touched to provide the > equivalent of SQL AS so that something else than the expression can be > returned as the column name. > Yes, that would be useful as well, independent of the JSON issue. Anthony