1var obj = {};
2
3$.getJSON("displayjson.php",function (data) {
4 $.each(data.news, function (i, news) {
5 obj[news.title] = news.link;
6 });
7});
8
9// later:
10$.each(obj, function (index, value) {
11 alert( index + ' : ' + value );
12});