title: print values from json file
body: <p>I'm using the following code to get JSON data from file, currently I was able to achieve the JSON but in one string. I want to parse it to array. The json file is like this:</p>
  
  <pre><code>{
      "employee": [
          {
              "name": "joan",
              "lastname": "test",
              "age": 23
          },
  </code></pre>
  
  <p>I'm using the following code to get the data but I get it in one string and I want to print some of the data</p>
  
  <pre><code>JSONObject jsonObject = (JSONObject) parser
                  .parse(new FileReader("C:\\MockData\\Json\\js.txt"));
  
          JSONParser parser1 = new JSONParser();
          ContainerFactory containerFactory = new ContainerFactory() {
              public List&lt;?&gt; creatArrayContainer() {
                  return new LinkedList&lt;Object&gt;();
              }
  
              public Map&lt;?, ?&gt; createObjectContainer() {
                  return new LinkedHashMap&lt;Object, Object&gt;();
              }
  
          };
  
          Map&lt;?, ?&gt; json = (Map&lt;?, ?&gt;) parser1.parse(jsonObject.toJSONString(), containerFactory);
  
          Iterator&lt;?&gt; iter = json.entrySet().iterator();
          System.out.println("==iterate result==");
  
          while (iter.hasNext()) {
              Map.Entry entry = (Map.Entry) iter.next();
  
              System.out.println(entry.getKey() + "=&gt;" + entry.getValue());
  
          }
  </code></pre>
  
  <p><strong>this is the output</strong></p>
  
  <pre><code>employee=[{age=23, name=joan, lastname=test}, {age=22, name=Alex, lastname=avz}, {age=65, name=Dan, lastname=severn}]
  </code></pre>
  
  <p>Here the <strong>entry.getValue() is retuen one concatenated string</strong> of the array,
  the while is running just one time...
  but I want to loop on it to take the key value. How should I do that? 
  for example if I want to <strong>print name alex witn age 22</strong> how should I do that?</p>
  
  <p><strong>Note</strong>: The file can be changed so I don't know the keys (now its name but in can be firstName and any other field for that i need generic solution). </p>
  
  <p>if there is a way to use different parser that can do that Im open.</p>