Macros always return a string. You can make the macro return a JSON-formatted string with to_json at the end, then unpack it with from_json when you use its result. Example here (output is a dict, but same principle for a list):
Macros always return a string. You can make the macro return a JSON-formatted string with to_json at the end, then unpack it with from_json when you use its result. Example here (output is a dict, but same principle for a list):