def response_json(handler, response):
    """
    Default JSON response.

    Sets JSON content type to given handler.