JSON_EXTRACT_TIMESTAMP_NTZ
Overview
Extracts a value from a JSON object by path and returns it as TIMESTAMP WITHOUT TIME ZONE. Returns NULL if the path does not exist or the value is null.
Syntax
Parameters
<json>: JSON type, the source data. Strings must first be converted usingPARSE_JSON.<path>: STRING type, a JSONPath expression such as'$.field'.
The timestamp value in the JSON must be a string in 'YYYY-MM-DD HH:MM:SS' format. No time zone conversion is applied during extraction — the literal value is preserved as-is.
Examples
Related Documentation
- JSON_EXTRACT_TIMESTAMP — timestamp extraction with time zone
- JSON_EXTRACT_DATE
- PARSE_JSON
