I am making a facebook app .I am able to fetch a user’s friend list using the graph api.The friend list is returned in the form of JSON.How to parse it is using java?I have the json simple library but i am having trouble using it.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here:
You should be able to know if the returned response is an array or object based on what you asked for.
Edit
In the case you get a json object which contains an array:
The JSONObject supports java.util.Map interface and JSONArray the supports java.util.List interface.