function 'IS JSON ARRAY' not identified - Mailing list pgsql-bugs

From Badia, Antonio
Subject function 'IS JSON ARRAY' not identified
Date
Msg-id BN7PR03MB347651B5C4951F037352DBA18B62A@BN7PR03MB3476.namprd03.prod.outlook.com
Whole thread Raw
Responses Re: function 'IS JSON ARRAY' not identified
List pgsql-bugs
Table 'Jsondata2' contains 2 columns, 'id' and 'data'. 'data' is of jsonb type.
When running query
select d.data - 'keya' ||  jsonb_build_object('keya', jsonb_array_elements(d.data::jsonb-> 'keya')) 
from "Jsondata2" as d
where jsonb_exists(d.data '$.keya') and d.data->'keya' is not null and d.data->'keya' IS JSON ARRAY;
I get the error message:
ERROR: syntax error at or near "JSON" LINE 3: ... d.data->'keya' is not null and d.data->'keya' IS JSON ARRAY... ^ 
SQL state: 42601 
Character: 213

Running Postgresql on MacOS (Sequoia 15.5), installed via homebrew:
antonio@mac POSTGRES % psql
psql (14.18 (Homebrew), server 14.17 (Homebrew))

 

pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #18945: Standby synchronization problem
Next
From: Tom Lane
Date:
Subject: Re: function 'IS JSON ARRAY' not identified