I'm trying to call a json file, but my function isnt returning anything.
index.html
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<script>$(document).ready(function(){
$.getJSON( 'ebooks.json', function( fb ) {
alert(fb);
});
});
}
ebooks.json
{
"title" : "software design"
}