I got this piece of code. Problem is that PUSH wont add anything to the array WORDS or if I try assign value to property. Data in collection that it iterates trough isn't null I tested it and calling other functions from that place in code work for example alert etc.
Thanks for your help.
Here is my piece of code
var uri = 'GetTickerData';
var words = [];
var string;
$.getJSON(uri)
.done(function (data) {
$.each(data, function (key, item) {
words.push('Some text'); //dont work
string = 'Another text'; // also dont work
});
});