I ask an OpenAI assistant to generate a list of three subjects. Here's my prompt:
...
Present these 3 topics strictly in a list in json format without any other surrounding text like this:
["Subject 1",Subject 2",Subject 3"].
The result will then be used dynamically to propose a multiple-choice block to the user.
...
Then I save the response in a variable.
But when I reuse the variable to display buttons dynamically afterwards, it doesn't work, I just get a button containing the whole list.
How can I correct this misinterpretation?