daily pastebin goal
74%
SHARE
TWEET

Untitled

a guest Feb 18th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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");
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top