public static JSONObject createJsonResult(SyndFeed feed){
Map<String,Object> map = new HashMap<String, Object>();
map.put(KEY_TITLE, feed.getTitle());
map.put(KEY_LINK,feed.getLink());
map.put(KEY_ID,feed.getUri());
OpenSearchModule osMod = (OpenSearchModule) feed.getModule(OpenSearchModule.URI);
if(osMod != null){
map.put(KEY_ITEMS_PER_PAGE,osMod.getItemsPerPage());
map.put(KEY_TOTAL_RESULTS,osMod.getTotalResults());
map.put(KEY_START_INDEX,osMod.getStartIndex());
}
List<Map<String,Object>> entries = new ArrayList<Map<String,Object>>();
List<SyndEntry> syndEntries = feed.getEntries();
for(SyndEntry e : syndEntries){
Map<String, Object> entryMap = new HashMap<String, Object>();