title: Selectively extract data from multi-level JSON object
body: <p>I have a multi-level JSON object which is contains an array of 143 other objects. </p>
  
  <p>Running console.log(obj) on this object displays:</p>
  
  <pre><code>0: Object
    ActFTEs: 0.00
    Actual: 11111
    Bud_Month: "October"
    FY_CD: 2013
    Mission_Name: "RST"
  __proto__: Object
  1: Object
    ActFTEs: 0.00
    Actual: 10000
    Bud_Month: "FY Total"
    FY_CD: 2013
    Mission_Name: "RST"
  </code></pre>
  
  <p>etc.... through all 143 objects.  However, the name/value pair Mission_Name:"RST" is only prevalent in the first <em>n</em> objects.</p>
  
  <p>For example, obj 43 contains:</p>
  
  <pre><code>43: Object
     ActFTEs: 0.00
     Actual: 10000
     Bud_Month: "FY Total"
     FY_CD: 2013
     Mission_Name: "VAO"
  </code></pre>
  
  <p>I have created the following function, but this still returns the full range of 143 values for the name/value pair related to "Bud_Month".</p>
  
  <pre><code>function get_dataArray() {
   var arr = [];
   var i= 0;
   for (i=0;i&lt;jsonobj.row.length;i++) {   
      if (jsonobj.row[i][name]="RST") {
           arr[i] = jsonobj.row[i]["Bud_Month"];
      }    
   } 
   console.log(arr);
   return arr;
  }
  </code></pre>
  
  <p>This returns:</p>
  
  <pre><code>["October", "FY Total", "December", "January", "February", "March", "April", "May", "June", "July", "August", "September", "FY Total", "October", "November", "December", "January", "February", "March", "April", "May", "June", "July", "August", "September", "November", "October", "November", "December", "January", "February", "March", "April", "May", "June", "July", "August", "September", "FY Total", "October", "FY Total", "December", "January", "February", "March", "April", "May", "June", "July", "August", "September", "FY Total", "October", "November", "December", "January", "February", "March", "April", "May", "June", "July", "August", "September", "November", "October", "FY Total", "December", "January", "February", "March", "April", "May", "June", "July", "August", "September", "FY Total", "October", "November", "December", "January", "February", "March", "April", "May", "June", "July", "August", "September", "November", "October", "FY Total", "December", "January", "February", "March", "April", "May", "June"…]
  </code></pre>
  
  <p>Does anyone have any advice for how to return the value for "Bud_Month" only in objects containing the name/value pair of Mission_Name:"RST" ?</p>