title: javascript read huge json object
body: <p>Hi I have a huge json object(about 1500line) that I want to get some info </p>
  
  <pre><code>{
      level1:{
          ...
          level2{
          ....
              level3{
                  ....
                  level4{
                      prop1:value1,
                      prop2:value2,
                      prop3:value3            
                  }
              }
          }
      }
  }
  </code></pre>
  
  <p>To read the object I have the following code</p>
  
  <pre><code>for(var key in prodOfferObj){
     var prodOffLvl1 = prodOfferObj[key];
     var prodOfferKey1 = key;
  
     for(var param in prodOffLvl1){
       var itemDescription=prodOffLvl1[param];
          for(var j= 0, itemsLen=itemDescription.length; j&lt;itemsLen; j++){
             var item = itemDescription[j];
             if(item.label ==='someValue'){.....}
  ....
  </code></pre>
  
  <p>I would like to get the value1 if value2 is a certain string.</p>
  
  <p>I would like to avoid interate over the object because it is huge and in a previous step I already read this object, but stopped at level3.</p>
  
  <p>The only way is interate over all the object again? The main point of this question is to get a good performance / practice and feel like the development effort it's huge.</p>
  
  <p>Thanks</p>