Load content from an external JSON file.

Load content from an external JSON file.

I've been trying to load content from an external JSON file. However when I paste a script - which runs perfectly on JSFeedle - the editor returns an error on the line where the getJSON method is used.

$.getScript("http://.../test.json", function () { ....

I can't think to any timing or scope issues here, as the problem is straight with the editor.