Convert querystring to list

My querystring will return a list, but in the params controller it always looks like this: “[1,2,3]”. How to convert from “[1,2,3]” to [1,2,3]. Because I need to send in list form for the query in BD?

If you specify that the list must be in JSON format, you can use a JSON decoder such as Jason to read it it into a list.

Would you have an example?

Validate that it returns a list value (and not an error) and you’re good to go.