title: Loading JSON FIle in FileMaker for D3 in WebViewer
body: <p>I am trying to implement D3 graphs and charts in a FileMaker solution. I am stuck on loading a JSON file properly to be used in D3 code displayed in the webviewer. </p>
  
  <p>I am loading all JS libraries into global variables ($$LIB.D3.JS, $$LIB.JQUERY.JS, etc.). Then I am placing the HTML code on the layout (giving an object name, i.e. html). The web viewer grabs the HTML code (from a text box on the layout) and JS code (from global variables) to render the page. This all works fine. (I am using this method detailed here: <a href="https://www.youtube.com/watch?v=lMo7fILZTQs" rel="nofollow">https://www.youtube.com/watch?v=lMo7fILZTQs</a>) </p>
  
  <p>However, the D3 code I have uses the getJSON() function to get a JSON, parse the data and create the visualization. I can't figure out a way to get the JSON file as a file from within FileMaker. I could put the content of the JSON file into a FileMaker variable and feed that into the HTML, but I then would not be able to use getJSON(). I would have to redo the D3 code to get the data from a JS variable and parse the data from the variable.</p>
  
  <p>Is there a way for me to load a JSON file so FileMaker could use it to render the visualization properly in the WebViewer.</p>