Is there any convenient way to load a local JSON file into a variable with CasperJs?
I saw someone suggest to use
$.getJSON(filename, function() ... >
I have the following working on CasperJS 1.1-beta1 and PhantomJS 1.9.1
test.json
{ "test": "hello" }
test.js
var json = require('test.json'); require('utils').dump(json); casper.echo(json.test); // "hello"