def METHOD_NAME(self, request):
    content = request.content.read()
    content = bytes2unicode(content)
    content_type = request.getHeader(b'Content-Type')
    content_type = bytes2unicode(content_type)
    if content_type.startswith('application/json'):
        payload = json.loads(content)
    else:
        raise ValueError(f'Unknown content type: {content_type}')
    log.msg(f"Payload: {payload}")
    return payload