Nested query parameteres

Hi in documentation there is information that queryParameters in Controller are “key value pairs”, but I need to make it nested, for example “?filter[first_name]=Smith” it is possible to do it with queryParams or need to do it in some way manually? Any advice are appreciated, greetings!