See whether a value is text, array, object, number, and so on.
Section: Read JSON values
Inspect the JSON type at a path
sql
sql
SELECT json_type(payload, '$.user') FROM events;Explanation
Helpful when cleaning inconsistent payloads from multiple producers.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Read JSON values