How do you read a file in the current directory using JQuery.getJSON()?
I\'m trying something simple (with my data.json file in the same directory as my html file):<
This is because you're running your web files directly from your hard drive. There are various pitfalls in this, one of which you have found. Ideally you want to be working in a server environment, even locally. You can install a (free) local LAMP server such as XAMPP. Then, you'll be able to use local AJAX.