The use of decorators predates the generic.json and it is still approrpriate for jsonrpc and xmlrpc, but for pure json output I'd use the new generic.json also because you can customize it by giving a .json to each action.
On Mar 17, 1:09 pm, "mr.freeze" <[email protected]> wrote: > It seems you can return json/xml/etc. data by either decorating an > action with @service.json or by simply calling the action with a file > extension index.json. Is there a difference? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.

