I have a json file in my wamp www directory
[
{ "c" : 2344},
{ "c" : 5433}
]
In my html page also in the wamp directory i have a getJSON call
$.getJSON("http://localhost/test.json", function(data) {
alert(data);
}
This getJSON does not do anything, no errors, nothing.
Any suggestions?
This works good for me:
json file:
javascript:
test.json is in the same folder of the javascript file directory.
Ciao