getJSON nothing happens

getJSON nothing happens

Hello,

I have test the following code:
  1. $.getJSON("api.php",
        function(data){
            alert(data.state);
        }
    );




the API contents the following:
  1. new Object({ 'state' : 'starting' })
in firebug i see, that the file api.php is loaded and the content is the right.
But i dont get an alert with the state starting.

i have test a lot...header content type text/javascript application/json etc.

What is the error?

Thank you