<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to work with JSON file from JS? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-work-with-JSON-file-from-JS/m-p/478471#M82138</link>
    <description>&lt;P&gt;@rendie &lt;/P&gt;

&lt;P&gt;Can you please share your sample javascript code for JSON file read/write opearation??&lt;/P&gt;</description>
    <pubDate>Tue, 05 Nov 2019 08:24:01 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2019-11-05T08:24:01Z</dc:date>
    <item>
      <title>How to work with JSON file from JS?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-work-with-JSON-file-from-JS/m-p/478470#M82137</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
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.&lt;BR /&gt;
How to fix it? How work with JSON file from JS file in /appserver/static?&lt;BR /&gt;
Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 08:08:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-work-with-JSON-file-from-JS/m-p/478470#M82137</guid>
      <dc:creator>rendie</dc:creator>
      <dc:date>2019-11-05T08:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to work with JSON file from JS?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-work-with-JSON-file-from-JS/m-p/478471#M82138</link>
      <description>&lt;P&gt;@rendie &lt;/P&gt;

&lt;P&gt;Can you please share your sample javascript code for JSON file read/write opearation??&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 08:24:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-work-with-JSON-file-from-JS/m-p/478471#M82138</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-11-05T08:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to work with JSON file from JS?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-work-with-JSON-file-from-JS/m-p/478472#M82139</link>
      <description>&lt;P&gt;@kamlesh_vaghela &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;require([&lt;BR /&gt;
    "splunkjs/mvc",   "jquery",&lt;BR /&gt;
    'splunk.util',    'splunkjs/mvc/tableview',&lt;BR /&gt;
  'splunkjs/mvc/searchmanager',&lt;BR /&gt;
    'splunkjs/mvc/simplexml/ready!'   ], function(mvc, $, splunkUtil,&lt;BR /&gt;
TableView )   { var request = new&lt;BR /&gt;
XMLHttpRequest(); request.open('GET',&lt;BR /&gt;
'saved.json', true); request.send();&lt;BR /&gt;
console.log(request.statusText); });&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;JSON and JS in one folder, is /appserver/static&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 09:15:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-work-with-JSON-file-from-JS/m-p/478472#M82139</guid>
      <dc:creator>rendie</dc:creator>
      <dc:date>2019-11-05T09:15:33Z</dc:date>
    </item>
  </channel>
</rss>

