Thanks. I did go along this path, but I was trying to use a database rows object, I need to iterate through it in the view, but javascript needs to iterate through it as well. The response json method works well for this, but as you mention it’s not a response. Is there a similar web2py method that can be used to convert the rows object to JSON?
From: Niphlod Sent: Tuesday, March 03, 2015 2:36 PM To: [email protected] Subject: Re: [web2py] Re: Problems after upgrading to 2.9.12 it should be done in the controller, the view is where you present the data, not where you transform it. anyway, if you want to hurt yourself, you can do {{import json as myjson}} {{=myjson.dumps(['a', 'b', 'c', {1: 'x'}])}} -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/9TZA25peXTE/unsubscribe. To unsubscribe from this group and all its topics, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

