Read a JSON path with operator syntax.
Section: Read JSON values
Use JSON operators
sql
sql
SELECT payload -> '$.type' AS raw_json,
payload ->> '$.type' AS text_value
FROM events;Explanation
`->` returns JSON text while `->>` returns a scalar SQL value when appropriate.
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