I am fairly new to Haskell and Yesod so I've been looking through many tutorials and documentation. I found another StackOverflow about parsing url queries: Lookup query parameters in Yesod That said, the solution there is not working for arrays of parameters in these url queries.
For example:
http://localhost:3000/models/product?field[]=test1&field[]=test2&field[]=test3&domain[]=["id","name",True]&limit=25
As far as I can tell, the /models/product
can be handled by defining a route, and I am able to even get the domain[]
parameter. However if I do a lookup on field[]
I can only get the first value test1
and I have no way to get the rest. Additionally, assuming that I have no foreknowledge of the size of this array, how would I accomplish this?
Thanks!