You can specify the JSON data type as an attribute of a structured user-defined type (UDT), but not as the base type of a distinct UDT. When specifying a JSON attribute, you can define the size and character set of the JSON type.
For information about the functions used in the examples, see Teradata Vantageā¢ - SQL External Routine Programming, B035-1147.