Andrew Dunstan <andrew@dunslane.net> writes:
> As a final counter example, let me note that Postgres itself handles
> Unicode escapes differently in UTF8 databases - in other databases it
> only accepts Unicode escapes up to U+007f, i.e. ASCII characters.
Good point. What if we adopt that same definition for JSON, and get rid
of the need to do explicit encoding conversion at all in the JSON code?
regards, tom lane