Add t=json optional parameter

Avoid HTML parsing in mobile clients
@fischman PTAL