title: How to use a JSON file in javascript
body: <p>First off, I am a newcomer to the Javascript realm. I have a JSON file, such as the following:</p>
  
  <pre><code>{"markers": [
    {
     "abbreviation": "SPA",
     "latitude":-13.32,
     "longitude":-89.99,
     "markerImage": "flags/us.png",
     "information": "South Pole",
    },
  
  .... lots more of these in between ....
  
  {
     "abbreviation": "ALE",
     "latitude":-62.5,
     "longitude":82.5,
     "markerImage": "flags/us.png",
     "information": "Alert",
    },
  ] }
  </code></pre>
  
  <p>I have been doing a lot of research as to how I can bring this file back into my script only to find ways to encode strings into JSON files. Basically, I want to read this file through javascript, something like this... (I know this isn't how you code)</p>
  
  <pre><code>object data = filename.json  
  document.write(data.markers.abbreviation[1])
  </code></pre>
  
  <p>Can someone please give me clear instruction on how to go about doing this. Remember, I am a newcomer and need specifics since I'm not up to par with the javascript jargon.</p>