From: dvarrazzo (@dvarrazzo) <noreply+dvarrazzo@github.com>
To: psycopg/psycopg <noreply+psycopg-psycopg@github.com>
Subject: Re: [psycopg/psycopg] PR #1505: Decode JSON data using the connection encoding
Date: Thu, 19 Nov 2026 22:42:00 +0000
Message-ID: <gh-psycopg-psycopg-1505-rc4636088824@github.com> (raw)
In-Reply-To: <gh-psycopg-psycopg-1505@github.com>
References: <gh-psycopg-psycopg-1505@github.com>
(on psycopg/psycopg/types/json.py:263)
It's kinda contradictory to call a function "decode" if it can return the unchanged bytes. But then I don't know which name to give it. `_maybe_decode()`, maybe?