title: Jasper REST pass collection as parameter
body: <p>I have a report which receives a List parameter to use it in a IN clause:</p>
  
  <p><code>$X{IN, personID, _personID}</code></p>
  
  <p>The report works when running it through the web application or remote repository view in iReport.</p>
  
  <p>Now I need to call it using the REST api. I have tried several different ways of passing the list value in my resource descriptor but none of them worked. </p>
  
  <pre><code>&lt;resourceDescriptor name="Test_Report" wsType="reportUnit" uriString="/Test/Test_Report" isNew="false"&gt;
  
      &lt;parameter name="_personId" isListValue="true"&gt;&lt;![CDATA[1]]&gt;&lt;/parameter&gt;
  
  &lt;/resourceDescriptor&gt;
  </code></pre>
  
  <p>The above example returns the following error:</p>
  
  <p><code>Invalid type java.lang.String for parameter _personId used in an IN clause; the value must be an array or a collection.</code></p>
  
  <p>I have also try the following:</p>
  
  <pre><code>&lt;parameter&gt;
  &lt;name&gt;_personId&lt;/name&gt;
  &lt;value isListValue="true"&gt;
      3
  &lt;/value&gt;
  &lt;/parameter&gt;
  </code></pre>
  
  <p>But this returns a report with all the records, not only the person with Id=3.</p>