Hi,
I have to write some information to JSON file because of this method comfortable for me, but when I am trying read JSON file from JS file I have an error with 404 code.
How to fix it? How work with JSON file from JS file in /appserver/static?
Thanks.
@rendie
Can you please share your sample javascript code for JSON file read/write opearation??
@kamlesh_vaghela
require([
"splunkjs/mvc", "jquery",
'splunk.util', 'splunkjs/mvc/tableview',
'splunkjs/mvc/searchmanager',
'splunkjs/mvc/simplexml/ready!' ], function(mvc, $, splunkUtil,
TableView ) { var request = new
XMLHttpRequest(); request.open('GET',
'saved.json', true); request.send();
console.log(request.statusText); });
JSON and JS in one folder, is /appserver/static