mohannad_haddad
February 21

I am currently working on a project where I receive an object in the form of an array containing city names. The content of the array is as follows:

{
"content": [
"New York",
"Los Angeles",
"Chicago",
"Houston",
"Phoenix",
"Philadelphia",
"San Antonio",
"San Diego",
"Dallas",
"San Jose"
]
}

I need to dynamically list these options so that customers can select their preferred city. However, I have encountered an issue while attempting to implement this. Each time I try, I receive the following error message:

"Cannot convert expression from type JSON Collection to required type of String Collection."

My objective is to present customers with a numbered list of cities, similar to the format below:

  1. Houston
  2. Chicago
  3. [Other Cities]

I would greatly appreciate your guidance on how to achieve this functionality. If you could provide a solution of how to list the cities correctly in the dynamic slots , it would be immensely helpful.

Thank you for your support, and I look forward to your feedback.


Visit Topic to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, click here.