title: struts 2 mapping return List/collection as json
body: <p>I have simplfied my code to make it easiear to understand:</p>
  
  <p>I have an action class</p>
  
  <pre><code>public class MyAction extends ActionSupport {
    private BigClass item;
  
    public String myMethod(){
      //call some services
      this.item = processedStuff;
      return SUCCESS;
    }
  
  }
  </code></pre>
  
  <p>and BigClass has an Array in it:</p>
  
  <pre><code>public class BigClass{
    private String data1;
    private String data2;
    private List&lt;MyBean&gt; dataArray=new ArrayList()&lt;MyBean&gt;;
    //setters and getters ...
  }
  </code></pre>
  
  <p>and the strut.xml mapping</p>
  
  <pre><code> &lt;result name="success" type="json"&gt;
        &lt;param name="includeProperties"&gt;
           item\.data1,
           item\.data2,
           item\.dataArray\[\d+\]\.id,
           item\.dataArray\[\d+\]\.name
        &lt;/param&gt;
  
  &lt;/result&gt;
  </code></pre>
  
  <p>as json result, I'm only getting information data1, and data2, the array is not returning..
  however if I change </p>
  
  <pre><code>item\.dataArray\[\d+\]\.id, 
  item\.dataArray\[\d+\]\.name
  </code></pre>
  
  <p>to</p>
  
  <pre><code> item\.dataArray.*,
  </code></pre>
  
  <p>I get all the information I need. 
  is it the expression <code>item\.dataArray\[\d+\]\.id</code>  incorrect?</p>