After the script has loaded, it looks inside its own script tag to access its content.
It will use some code similar to this:
var scripts = document.getElementsByTagName("script");
var data = eval(scripts[scripts.length - 1].innerHTML);
Courtesy of John Resig.