[web2py] Re: controller return list instead of string or dict

2013-07-30 Thread Niphlod
can you explain better what's going on ? the generic json view (as any other view) is made to serialize a python object to something (in json's case, a json string). If you already return a string because your code encodes it already, than you don't need any view, because the job the view

[web2py] Re: controller return list instead of string or dict

2013-07-30 Thread Matt
We've got a controller with a restful method (using the @request.restful decorator), which makes calls over a json rpc socket and then returns the result. Sometimes the result of the json rpc call is a list of strings, which is properly converted back into python as a list type. When we do