Sorry for my late reply.

You do not need response.generic_patterns = ['json'] as the generic view is not 
used when you return a string.

The error is a serialization error. What's in the model?




On Oct 23, 2011, at 12:20 PM, Phyo Arkar wrote:

> def get_items():
>       response.generic_patterns = ['json']
>       query=(db.item.id>=0)
>       return response.json(db(query).select(db.item.id,db.item.name))

Reply via email to