8.14.5 jsonb subscripting - Mailing list pgsql-docs

From PG Doc comments form
Subject 8.14.5 jsonb subscripting
Date
Msg-id 171265510066.682.7886492568248508496@wrigleys.postgresql.org
Whole thread Raw
Responses Re: 8.14.5 jsonb subscripting
List pgsql-docs
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/16/datatype-json.html
Description:

Using subscripts with square brackets is not supported, one must use -> or
#> operators
The given examples result in error:

SELECT ('{"a": 1}'::jsonb)['a'];

-- Extract nested object value by key path
SELECT ('{"a": {"b": {"c": 1}}}'::jsonb)['a']['b']['c'];

-- Extract array element by index
SELECT ('[1, "2", null]'::jsonb)[1];

pgsql-docs by date:

Previous
From: Jan Behrens
Date:
Subject: Re: Non-blocking synchronization in libpq using pipeline mode
Next
From: Laurenz Albe
Date:
Subject: Re: 8.14.5 jsonb subscripting