Hi Laura,
On Success event run:prevar item = data.root.item;
var arr = [];
item.each(function(){
arr.push($(this).direccion);
});
var result = jQuery.unique(arr);
localStorage.setItem("arr", result);/preThis code will save the array in localStorage.
And add this code in Generic service to return a result with unique values:prelocalStorage.getItem("arr");/pre