I have included my json file like this
<script type="text/javascript" src="slideshows/1/myfile.json"></script>
And I wonder how I can now create a js object from this file?
If the json was defined inline, or defined in a .js-file it would already have a variable connected to it, but how does it work now that it is in a separate json file?
jQuery - getJSON( url, [data], [callback] )to call json file and instantiate in callback methodapplication/jsonnotapplication/javascript. It isn't a programming language.