title: HTML Automatically fetching JSON file from GitHub repo
body: <p>I've been looking around for an answer to this question and have found mixed results...</p>
  
  <p>My question is simple: <strong>How can I simply fetch a JSON file from a Github repository using either JQuery, JavaScript, or some sort of scripting?</strong> I've heard of a Github API and I've also heard about Github "raw" urls, but I want to know which would be the most efficient and standard method of doing something like this. Perhaps it would require PHP and make the server pull the repository off of the server?</p>
  
  <p>If any are curious, I'm doing this to provide a simple localization layer. I have a JSON database of content-metadata that is in English and want to provide a means of letting users switch to different languages, add additional language support, and increase accessibility. Version control and maintaining the database is important to me, so GitHub felt like an obvious solution. </p>
  
  <p>It would be a pain to manually pull content and synchronize the website myself. I would like to address it much like I address parsing my other JSON files, which is as follows: </p>
  
  <pre><code>$.getJSON("contentmetadata.json", function(data){
      $.each(data.content, function(i, field){
          &lt;!-- data here --&gt;
      });
  });
  </code></pre>
  
  <p>but instead of local data, I would like to fetch it from the Github servers. If I could do it with JQuery or JavaScript, that would be great, but I could also try to implement PHP or server-side functionality if that is the only reasonable option. </p>