Convert array of dictionaries into usable JSON
I am having trouble creating a JSON object that embeds an array of dictionaries. Here is non-working code of what I want to do. The myMessages in parameters throws an error: let myMessages: [Dictionary: Any?] = [ { role: "system",…