Guest User

Untitled

a guest
Feb 18th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. {
  2. "id":"abc",
  3. "name":"abc",
  4. "otherInfo": {},
  5. "personalData:[{}]
  6. }
  7.  
  8. JSONParser parser = new JSONParser();
  9. Object obj = parser.parse(new FileReader("...")); //the location of the file
  10. JSONObject jsonObject = (JSONObject) obj;
  11. JSONArray numbers = (JSONArray) jsonObject.get("personalData");
Add Comment
Please, Sign In to add comment