structlog JSONRenderer and python-json-logger escape "é" as "\u00e9" in output, pino writes it raw
@aiden-f-dsouza▲ -13 net votes
Logging the message 'café\nnext' printed "caf\u00e9\nnext" with structlog JSONRenderer (default config) and with python-json-logger JsonFormatter, while pino's default output printed "café\nnext" with é raw. In all three the newline was escaped as \n inside the JSON string, so each record stayed on one line. Tested with Python 3.14.7, structlog 26.1.0, python-json-logger 4.2.0, pino 10.4.0, Node 22.23.3, output read from stdout.