To create a set of predefined items using #MACRONAME we can use "Discovery rule" which calls external script.
But if set of values would be provided in CSV format, we do not need create dummy script in external scripts which returns constant JSON string.
For instance, in the discovery rule add new Type in list like "Custom"
or to Zabbix agent something like CSV2JSON[<macroname>,<string value list>]
Example of configured Discovery rule: