I'm in the early stages of writing a web2py application, and I want to
retrieve the data returned by one of my actions in JSON format.

As I understand it, the documentation seems to say that if I navigate
to
../[application]/[controller]/[action].json
then the dictionary returned by my action should be passed to the
generic.json view, which will serialize the data for me.

However, if I do this, I just get a page that says
"invalid view ([controller]/[action].json)"

Strangely, in my other application, this is working fine.
Both are actions in their application's default controller.
Both return dictionaries.
A generic.json view is defined for each.

Am I overlooking some other important factor?

Reply via email to