The generic.json view expects a dictionary. You can do def test(): from gluon.serializers import json return json([1,2,3,4])
On Friday, 13 April 2012 10:15:46 UTC-5, selecta wrote: > > is it possible to do something similar to > def test(): > response.generic_patterns = ['json'] > return [1,2,3,4] > > >