How are you exporting the data, proc JSON?
This answer replaced variable names with labels during the export:
https://communities.sas.com/t5/SAS-Programming/How-do-I-use-a-Variable-Label-in-JSON-key-PROC-JSON-E...
Is that what you want? Or do you want a separate json object listing the variables and labels? If the latter, perhaps run PROC CONTENTS and output that to a SAS dataset, then export that dataset to JSON.
The Boston Area SAS Users Group is hosting
free webinars!
Next up:
SAS Trivia Quiz hosted by SAS on Wednesday May 21.
Register now at
https://www.basug.org/events.