JSONExtract Method | Teradata Vantage - JSONExtract - Advanced SQL Engine - Teradata Database

JSON Data Type

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
uwa1591040057999.ditamap
dita:ditavalPath
uwa1591040057999.ditaval
dita:id
B035-1150
lifecycle
previous
Product Category
Teradata Vantageā„¢

The JSONExtract method operates on a JSON instance, to extract data identified by the JSONPath formatted string. If one or more entities are found, the result of this method is a JSON array composed of the values found; otherwise, NULL is returned.

JSONExtract searches the JSON object specified by JSON_expr and retrieves the data that matches the entity name specified by JSONPath_expr.

Condition Return Value
JSON_expr is null. NULL
JSONPath_expr is null. Error
Entity specified by JSONPath_expr found in JSON instance. JSON array whose elements are all the matches for the JSONPath_expr in the JSON instance
Entity specified by JSONPath_expr not found in JSON instance. NULL