2

I am using facebook4j FQL query i want to convert my query result to my own object.I tried to convert but it does not convert jsonObject to own pojo my code is

String query = "SELECT uid2 FROM friend WHERE uid1=me()";
JSONArray jsonArray = facebook.executeFQL(query);
for (int i = 0; i < jsonArray.length(); i++) {
    JSONObject jsonObject = jsonArray.getJSONObject(i);
    System.out.println(jsonObject.get("uid2"));
}

I want to convert jsonObject to my own pojo userDetails

4

0 回答 0