How to tell if no data is returned from json jquery call
<p>Im calling a url and getting json data back, If there is no data returned then I would like to be able to tell this with jquery. If there is no data to be return then the page that is called is blank.</p>

<p>Currently I have</p>

<pre><code>var urlToGetJsonWith = '_Chapters.aspx?videoid=' + videoid;

jQuery.getJSON(urlToGetChaptersWith, function (data) {


}
</code></pre>

<p>But obviously if there is no data, then the call back function would not be executed.</p>

<p>Anybody know how to tell if no json was returned?</p>

<p>Cheers,
Pete</p>
