The function accepts TD_ANYTYPE as input and returns TD_ANYTYPE, and can be used on any form of the JSON data type.
You can use the TD_LZ_COMPRESS function to compress JSON data; however, Teradata recommends that you use JSON_COMPRESS instead because the JSON_COMPRESS function is optimized for compressing JSON data.