Ticket #1459 (closed defect: fixed)
Need a consistent way to request JSON output
|Reported by:||abadger1999||Owned by:||anonymous|
Currently, using the two forms of expose create different URLs for retrieving JSON::
@expose(allow_json=True) => URL/?tg_format=json @expose('json') => URL/ And tg_format=json is an error.
This makes it hard for client code that doesn't care how the server is implemented, it just wants to retrieve json data from the server. The easy way to deal with this is to allow both forms of expose to create a function that accepts tg_format=json.