On Thu, May 30, 2019 at 10:41 AM Robert Vollmert <rob(at)vllmrt(dot)net> wrote:
>
> 1. select * from json_to_record('{"out": "{\"key\": 1}"}') as (out json);
>
...
> Postgres 10/11:
>
> 1. gives
>
> ERROR: invalid input syntax for type json
> DETAIL: Token "key" is invalid.
> CONTEXT: JSON data, line 1: "{“key…
>
This is caused by commit:
commit cf35346e813e5a1373f308d397bb0a8f3f21d530
Author: Andrew Dunstan <andrew(at)dunslane(dot)net>
Date: Thu Apr 6 22:11:21 2017 -0400
Make json_populate_record and friends operate recursively
As far as I can tell, this was not an intended change, so I agree it is
probably a bug.
Cheers,
Jeff