By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
select version();
version() |
---|
8.0.30 |
select *
from json_table(json_extract('{"data": [{"calendarId":"11","userId": "12"},{"calendarId":"21","userId": "22"}]}',
'$[0].data[*].userId'),
'$[*]' columns (value int path "$")) x
;
value |
---|
12 |
22 |