So, I have to open my web app, like file. So the browser opens .html file and at the adres bar protocol used is file://. But at the script I have to open .json file and load it to variable.
I have tried $.ajax request with data type jsonp, I have tried requirejs who kind a load file but gets syntax error from json file so it doesnt load into variable. Same happens if I just do this
<script type="text/javascript" src="path/to/.json"></script>
Is there another way? App doesn't use PHP it needs to run from file:// protocol with not changing browser settings.
Thanks