Converting Json to java objects using Google's Gson
I am using Spring Social FqlQuery to get data's from facebook. Here is the JSON response I am getting from facebook. My controller where i am getting Json output is here, fql = "SELECT work FROM user WHERE uid = me()"; facebook.fqlOperations().query(fql, new FqlResultMapper<Object>() { public Object mapObject(FqlResult result) { List list = (List) result.getObject("work"); for (Object object : list) { JsonHelper jsonHelper = new JsonHelper(); Gson gson = new GsonBuilder().setPrettyPrinting().create(); String jsonOutput = gson.toJson(object); System.out.println(jsonOutput); gson.fromJson