$.get as JSON to array?

$.get as JSON to array?

I'm wondering how I can get a JSON format to an array or something usable for me.

I've got the following;

The index.php contains;
  1. {"playlist":[{"media_id":"9470","filename":"NEW_4.jpg"}]}


The code:
  1. var playlist_array = new Array();
  2. function update()
  3. {
  4.     $.get('index.php', {extension:'screen'},
  5.     function(data)
  6.     {    
  7.         playlist_array = data['playlist'];
  8.     }, "json");
  9. }
  10. function hello()
  11. {
  12. alert(playlist_array[0]['filename']);
  13. }
  14. update();
  15. hello();

playlist_array[0]['filename'] always is undefined :(
Where 0 can be different integers because the array will be bigger.

Does anyone has an idea how to do this?