def json_by_default_dispatcher(router, request, response):
  """WSGI router which defaults to 'application/json'."""

  response.content_type = 'application/json'
  return router.default_dispatcher(request, response)