enable JSON-output in web.web Handlers

I recently needed to output json in a WebInterface.
I think this need is quite common, so I propose this change :D