scalar
JSON_EXISTS
Tests whether a SQL/JSON path produces an item; error handling is configurable. Example target: PostgreSQL 17. No tables or extensions required.
Formal Syntax & Structure
sql syntaxsql
JSON_EXISTS(context_item,path)Working Example
Example Snippetsql
SELECT JSON_EXISTS('{"qty":null}'::jsonb, '$.qty');