<?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: Load local json file in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/load-local-json-file/m-p/1228009#M5653</link>
    <description>&lt;P&gt;For anyone who may have the same question, this is what I did&lt;/P&gt;&lt;P&gt;I placed my data folder under the src/runtime and instead of fetch, I used&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import data from "./data/info.json";&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;If you run into issues accessing your json file, then add this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; const loadedData = JSON.stringify(data);
    const json = JSON.parse(loadedData);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Nov 2022 17:55:57 GMT</pubDate>
    <dc:creator>LefterisKoumis</dc:creator>
    <dc:date>2022-11-02T17:55:57Z</dc:date>
    <item>
      <title>Load local json file</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/load-local-json-file/m-p/1227736#M5649</link>
      <description>&lt;P&gt;What's the recommendation to where to place a json file in the ExB file structure and how to access it with the local pathname.&lt;/P&gt;&lt;P&gt;I am using fetch to read the json file but it seems that I cannot to access it if I use a local file.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 00:19:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/load-local-json-file/m-p/1227736#M5649</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2022-11-02T00:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Load local json file</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/load-local-json-file/m-p/1228009#M5653</link>
      <description>&lt;P&gt;For anyone who may have the same question, this is what I did&lt;/P&gt;&lt;P&gt;I placed my data folder under the src/runtime and instead of fetch, I used&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import data from "./data/info.json";&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;If you run into issues accessing your json file, then add this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; const loadedData = JSON.stringify(data);
    const json = JSON.parse(loadedData);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 17:55:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/load-local-json-file/m-p/1228009#M5653</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2022-11-02T17:55:57Z</dc:date>
    </item>
  </channel>
</rss>

