title: Jersey, @QueryParam List<String>
body: <p>I want to take a list as a parameter, but the value of the list does not correspond to java version list. For example @QueryParam("orderBy") List orderBy)
  This list has the value of [age, name] as an element.</p>
  
  <p>Is it possible to have the value separately. Like 1st element age and 2nd element name.</p>
  
  <p>`</p>
  
  <pre><code>@GET
  @Path("/range")
  @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML})
  public Response searchForActivitiesWithRange(@QueryParam(value = "description")List&lt;String&gt; descriptions,
                                               @QueryParam(value = "durationFrom") int durationFrom,
                                               @QueryParam(value = "durationTo") int durationTo) {
  
  
      List&lt;Activity&gt; activities = activityRepository.findByDescriptionandDuration(descriptions,durationFrom,durationTo);
  
      if (activities == null || activities.size() == 0) {
          return Response.status(Status.NOT_FOUND).build();
      }
  
      return Response.ok().entity(new GenericEntity&lt;List&lt;Activity&gt;&gt;(activities){}).build();
  }`
  </code></pre>