title: Parse JSON in java (Eclipse)
body: <p>I have the following JSON text (REST API URL SOURCE). How can I parse it to get ID, name, phone,city etc:</p>
  
  <pre><code>{"ID":1,"name":"aaa","phone":["345345345","1244","743"],"city":"asdasd"}
  {"ID":2,"name":"bbb","phone":["234234","235","124"]}
  {"ID":3,"name":"ccc","phone":["4234","6236","123"],"city":"jhjk"}
  </code></pre>
  
  <p>thanks.</p>
  
  <p>EDIT:</p>
  
  <p>I Run this code:</p>
  
  <pre><code>                      String var1 = output;
                         JSONObject obj;
                         try {
                                obj = new JSONObject(var1);
                                String a = obj.getString("name");
                                String b = obj.getString("phone");
                                String c = obj.getString("city");
  
                                System.out.println("name:" + a);
                                System.out.println("phone:" + b);
                                System.out.println("city:" + c);
  </code></pre>
  
  <p>and I got "phone" as a string .
  someone can add the code to parse the phone line?</p>