for (Iterator<JsonNode> iterator = dataNode.iterator(); iterator.hasNext();) {
posts.add(deserializePost(postType, type, (ObjectNode) iterator.next()));
}
if (jsonNode.has("paging")) {
JsonNode pagingNode = jsonNode.get("paging");
PagingParameters previousPage = getPagedListParameters(pagingNode, "previous");
PagingParameters nextPage = getPagedListParameters(pagingNode, "next");
return new PagedList<T>(posts, previousPage, nextPage);
}
return new PagedList<T>(posts, null, null);
}