@SuppressWarnings("unchecked")
public Connection(FacebookClient facebookClient, String json, Class<T> connectionType) {
List<T> data = new ArrayList<T>();
if (json == null)
throw new FacebookJsonMappingException("You must supply non-null connection JSON.");
JsonObject jsonObject = null;
try {
jsonObject = new JsonObject(json);
} catch (JsonException e) {
throw new FacebookJsonMappingException("The connection JSON you provided was invalid: " + json, e);
}
// Pull out data
JsonArray jsonData = jsonObject.getJsonArray("data");
for (int i = 0; i < jsonData.length(); i++)