JSONExtract[Large]Value JSON Method | VantageCloud Lake - JSONExtractValue and JSONExtractLargeValue - Teradata VantageCloud Lake

Lake - Working with SQL

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
jbe1714339405530.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
jbe1714339405530

The JSONExtractValue and JSONExtractLargeValue methods retrieve the text representation of the value of an entity in a JSON instance. JSONExtractLargeValue takes the same input parameters and operates the same as JSONExtractValue; however, the return type and size are different.

These methods search the JSON object specified by JSON_expr and get the value of the entity name specified by JSONPath_expr. The entity name is represented by a JSONPath formatted string.

JSONPath_expr must select zero JSON items or a single JSON item, which must be either a scalar value or a JSON null. If more than one value matches JSONPath_expr, a warning and an error message string indicating that multiple results were found are returned.

Condition Return Value
Entity found in JSON instance. String that is value of entity
More than one value matches query expression specified by JSONPath_expr. Warning and error message string "*** ERROR MULTI RESULT ***"
Result is empty string. Empty string
Result is JSON null. Vantage NULL
Entity not found in JSON object. Vantage NULL
JSON_expr argument is null. Vantage NULL