Example: Extract Specific JSON Values from the JSON Document - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

This example selects specific values from the JSON name/value pair using JSON string syntax. If a row does not have a specific name requested, null is returned.

select QueryID, RowNum, ParamJSON."Data Record".x from QryLogParamJSON;

Result:

QueryID            RowNum ParamJSON.Data Record.x
------------------ ------ -----------------------
307190733539634351 1      ?
307190733539634351 2      10