title: How to navigating through JSON node structure
body: <p>I'm currently developing a Chrome extension, which call a webservice that send me a SOAP XML message. When i received this message, i have to navigate on it to parse it but i'm having some problem with it.</p>
  
  <p>The structure of the xml is like this :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;env:Envelope     xmlns:env="http://www.w3.org/2003/05/soap-envelope"     
              xmlns:ns1="/service.php?service=components" 
  
              xmlns:enc="http://www.w3.org/2003/05/soap-encoding" 
  
              xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" 
  
              xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
  
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
  
  
  &lt;env:Body xmlns:rpc="http://www.w3.org/2003/05/soap-rpc"&gt;
  
  &lt;ns1:getComponentsResponse env:encodingStyle="http://www.w3.org/2003/05/soap-encoding"&gt;
  
  &lt;rpc:result&gt;return&lt;/rpc:result&gt;
  
  &lt;return enc:itemType="enc:Struct" enc:arraySize="7" xsi:type="enc:Array"&gt;
  
  &lt;item xsi:type="enc:Struct"&gt;
          &lt;m_type xsi:type="xsd:string"&gt;image&lt;/m_type&gt;
          &lt;m_params enc:itemType="enc:Struct" enc:arraySize="4" xsi:type="enc:Array"&gt;
              &lt;item xsi:type="enc:Struct"&gt;
                  &lt;m_name xsi:type="xsd:string"&gt;image&lt;/m_name&gt;
                  &lt;m_value xsi:type="xsd:string"&gt;9f00de47f9f07ec0c7389875e4739c2b.png&lt;/m_value&gt;
                  &lt;m_numType xsi:type="xsd:int"&gt;3&lt;/m_numType&gt;
              &lt;/item&gt;
              &lt;item xsi:type="enc:Struct"&gt;
                  &lt;m_name xsi:type="xsd:string"&gt;weblink&lt;/m_name&gt;
                  &lt;m_value xsi:type="xsd:string"&gt;http://www.xxx.com&lt;/m_value&gt;
                  &lt;m_numType xsi:type="xsd:int"&gt;2&lt;/m_numType&gt;
              &lt;/item&gt;
              &lt;item xsi:type="enc:Struct"&gt;
                  &lt;m_name xsi:type="xsd:string"&gt;redirect-type&lt;/m_name&gt;
                  &lt;m_value xsi:type="xsd:string"&gt;2&lt;/m_value&gt;
                  &lt;m_numType xsi:type="xsd:int"&gt;0&lt;/m_numType&gt;
              &lt;/item&gt;
              &lt;item xsi:type="enc:Struct"&gt;
                  &lt;m_name xsi:type="xsd:string"&gt;is-logo&lt;/m_name&gt;
                  &lt;m_value xsi:type="xsd:string"&gt;1&lt;/m_value&gt;
                  &lt;m_numType xsi:type="xsd:int"&gt;0&lt;/m_numType&gt;
              &lt;/item&gt;
          &lt;/m_params&gt;
          &lt;m_order xsi:type="xsd:int"&gt;0&lt;/m_order&gt;
          &lt;m_childs enc:itemType="xsd:anyType" enc:arraySize="0" xsi:type="enc:Array"/&gt;
          &lt;m_id xsi:type="xsd:int"&gt;119&lt;/m_id&gt;
          &lt;m_name xsi:type="xsd:string"&gt;image_4d624ce18aeb3&lt;/m_name&gt;
      &lt;/item&gt;
  </code></pre>
  
  <p>The code is like this :</p>
  
  <pre><code>var json = $.xmlToJSON(xmlhttp.responseXML);
  alert(json.item[0].length);
  </code></pre>
  
  <p>So basicelly i need to navigate throught the "item", but it didn't works and i don't understand for which reason...</p>