I use Finatra. If I send POST data of the kind application/x-www-form-urlencoded; charset=UTF-8
where the data is of the kind
options[0][name]:option1
options[0][value]:1
options[1][name]:option2
options[1][value]:2
what is a good way to get a List
of (name, value)
on the server?
This can be improved but should do the job. Convert the params to a list of tuples ie. List[Tuple[String, String]]. Then iterate over the params matching to the param name case and set the value.