title: How to search huge JSON by using Javascript or JQuery
body: <p>In my application, web service returns a large dataset of JSON file. This is the part of my JSON string.</p>
  
  <pre><code>[
         {
            "Value":"21",
            "Province":"Default",
            "Branches":[
               {
                  "Value":"1108",
                  "Province":"Davie",
                  "IsValid":"False"
               },
               {
                  "Value":"1107",
                  "Province":"Ab area109",
                  "IsValid":"False"
               },
               {
                  "Value":"1105",
                  "Province":"Hollywood",
                  "IsValid":"False"
               }
            ]
         },
         {
            "Value":"17",
            "Province":"East",
            "Branches":[
               {
                  "Value":"212",
                  "Province":"area109",
                  "IsValid":"False"
               },
               {
                  "Value":"219",
                  "Province":"area116",
                  "IsValid":"False"
               }
            ]
         },
         {
            "Value":"24",
            "Province":"East11",
            "Branches":[
               {
                  "Value":"211",
                  "Province":"area108",
                  "IsValid":"False"
               },
               {
                  "Value":"218",
                  "Province":"area109",
                  "IsValid":"False"
               },
               {
                  "Value":"1102",
                  "Province":"area999",
                  "IsValid":"False"
               }
            ]
         },
         {
            "Value":"25",
            "Province":"hilton25",
            "Branches":[
               {
                  "Value":"213",
                  "Province":"area110",
                  "IsValid":"False"
               },
               {
                  "Value":"220",
                  "Province":"area999",
                  "IsValid":"False"
               }
            ]
         }
  ]
  </code></pre>
  
  <p>I need to search province name and get all the nodes that match up until its parent. Which means I need to search provine name by Root level and Branche level.</p>
  
  <p>as the 
  <strong>eg 1.</strong> when the search <code>key = Default</code>, Following JSON sholud be return.</p>
  
  <pre><code>[
         {
            "Value":"21",
            "Province":"Default",
            "Branches":[
               {
                  "Value":"1108",
                  "Province":"Davie",
                  "IsValid":"False"
               },
               {
                  "Value":"1107",
                  "Province":"Ab area109",
                  "IsValid":"False"
               },
               {
                  "Value":"1105",
                  "Province":"Hollywood",
                  "IsValid":"False"
               }
            ]
         }
  ]
  </code></pre>
  
  <p><strong>eg 2.</strong> when the search <code>key = area110</code>, Following JSON sholud be return.</p>
  
  <pre><code>[
      {
        "Value":"25",
        "Province":"hilton25",
        "Branches":[
           {
              "Value":"213",
              "Province":"area110",
              "IsValid":"False"
           }
        ]
      }
  ]
  </code></pre>
  
  <p>How can I do this by using Javascript or JQuery. Please help me.</p>