title: xidel: add object into json array
body: <p>I want extract some information on a website. For this, i use xidel.
  I use this command line:</p>
  
  <pre><code>xidel --template-file template.xml --dot-notation=on
  </code></pre>
  
  <p>and here my template file :</p>
  
  
  
  <pre class="lang-html prettyprint-override"><code>&lt;actions&gt;
  &lt;action&gt;
      ... code before ...
  
      &lt;page url={$url}/&gt;
      &lt;pattern&gt;
          &lt;div class="row p-r-15 p-l-15 contenu-collec"&gt;  
              {$collection := []}
              &lt;t:loop&gt;
              {$manga := {}}
                  &lt;div univers="1"&gt;
                      &lt;div class="post-block collec-titre"&gt;
  
                          &lt;h2 class="post-title detail-objets"&gt;{$manga.title:=.}&lt;/h2&gt;
                          &lt;div&gt;
                              &lt;input&gt;{$manga.value:=@value}&lt;/input&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;!--&lt;call action="test"/&gt;--&gt;
                  {$collection := $collection.push($manga)}
              &lt;/t:loop&gt;
          &lt;/div&gt;  
      &lt;/pattern&gt;
  
      &lt;loop var="t" list="$collection"&gt;
          &lt;call action="test"/&gt;
      &lt;/loop&gt; 
  &lt;/action&gt;
  
  &lt;action id="test"&gt;
      &lt;page url="http://site"&gt;
          &lt;post name="editions" value="{$t.value}"/&gt;
          &lt;post name="action" value="collec_objets_serie"/&gt;
          &lt;post name="univers" value="1"/&gt;
          &lt;post name="user_id" value="{$userid}"/&gt;
  
          &lt;template&gt;
              &lt;!-- &lt;div style="display:block;"&gt;{$t.test}&lt;/div&gt; --&gt;
              &lt;t:loop&gt;
              {$t.tome := {}}
                  &lt;a&gt;{t.tome.url:=@href}&lt;/a&gt;
              &lt;/t:loop&gt;
          &lt;/template&gt;                 
      &lt;/page&gt;
  &lt;/action&gt;
  </code></pre>
  
  <p></p>
  
  <p>In the loop i create a object $manga. How to add this object to the $collection array ?
  I have tried </p>
  
  <pre class="lang-html prettyprint-override"><code>{$collection := $collection.push($manga)}
  </code></pre>
  
  <p>but don't work.</p>