Is getJSON only useful for those who control a server? Is there any other alternative for getting data from a file?
i tried
$.getJSON("good.json", function(data){
out=out+"good.json: "+data + ","; });
where good.json = {"a":"1","b":"2"} and got a result of 'null' for data.
These all are valid JSON files, and all give null when used in the above:
good.htm assoc.json assoc.js stub.json stub.js test.js test.txt
and all get a null result...
The above is in an interactive setting at http://jsbin.com/dbJSON/8/edit
the output (of null) is to be had by clicking 'output'.