Untitled*
You must execute the code again to save those values in the database.
version
PostgreSQL 14.17 (Debian 14.17-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit

fixed_result
{"a": {"b": {"x": {"y": {}}}}}

current_result
{"a": {}}


CREATE FUNCTION

CREATE FUNCTION