I suspect that it has to do with the headers that are set on the response object.
When calling the function with .json extension (as in my example) the content-type headers are automagically set by web2py to application/json and the content formatted accordingly. >From what I can tell, your method will return a string/html type. It is likely that the JS code is internally checking the returned response and expecting json as content-type. If I call my controller function without the .json extension, I get the same JSON.parse error message. -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/2d392b8b-bd05-4a0e-b3e4-6ed890b0d169o%40googlegroups.com.

