pretty print json if app.debug is True