title: Filter Json array
body: <p>This is my first time working with json and I'm having a hard time trying to filter an array I'm trying to get all values (tienda) where id_estado=1.</p>
  
  <p>Any clue how to approach this?</p>
  
  <pre><code>JA1= [{"id_estado":"1","tienda":"Aurrera"},{"id_estado":"1","tienda":"Walt-Mart"},{"id_estado":"1","tienda":"Chedraui"},{"id_estado":"1","tienda":"Soriana"},{"id_estado":"1","tienda":"Comercial MX"},{"id_estado":"1","tienda":"City Market"},{"id_estado":"2","tienda":"Walt-Mart"},{"id_estado":"2","tienda":"Chedraui"},{"id_estado":"2","tienda":"Aurrera"},{"id_estado":"2","tienda":"Superama"}]
  
              JSONArray JA1=new JSONArray(result1);
          JSONObject json1= null;
          name = new String[JA1.length()];
              for (int i = 0; i &lt; JA1.length(); i++) {
                   Log.d("LOG", "resultado name sin arreglo11 " + JA1);
                  //name[i] = json1.getString("tienda");
                  //name[i]=json1.getString("estado");
              }
  
          for(int i=0;i&lt;name.length;i++)
          {
              list2.add(name[i]);
              Log.d("LOG", "resultado name2 " + name[i]);
          }
  </code></pre>
  
  <p>Thanks in advance</p>