title: Using data from JSON files as references to data from other JSON files
body: <p>I am trying to make a website for a tabletop game a friend of mine created, and I want to store all the data in JSON files and pull up the data in HTML files with Javascript. I want to, for example, store each class in a separate file, with its skill list (only listing the skill name and level learned in this file) included in the file, and a master list of all skills, their costs, and their descriptions in another file. Basically, I want to treat two or more JSON files like linked tables in a database.</p>
  
  <p>In this example, this is what would be found in the class's file:</p>
  
  <pre><code> {
          "name": "Class 1",
          "skills": [
              {
                  "name": "Skill 1",
                  "level": 1
              },
              {
                  "name": "Skill 2",
                  "level": 2
              },
              {
                  "name": "Skill 3",
                  "level": 3
              }
          ]
      }
  </code></pre>
  
  <p>And this is the master skill file:</p>
  
  <pre><code>    {
          "skills": [
              {
                  "name": "Skill 1",
                  "desc": "This is the first skill.",
                  "cost": "1 MP"
              },
              {
                  "name": "Skill 2",
                  "desc": "This is the second skill.",
                  "cost": "2 HP"
              },
              {
                  "name": "Skill 3",
                  "desc": "This is the third skill.",
                  "cost": "3 Gold"
              },
              {
                  "name": "Skill 4",
                  "desc": "This is a skill from a different class.",
                  "cost": "All MP"
              }
          ]
      }
  </code></pre>
  
  <p>And I want the HTML file to output something like this, using these two separate JSON files:</p>
  
  <pre><code>&lt;h1&gt;Class 1&lt;/h1&gt;
      &lt;table&gt;
          &lt;tr&gt;
              &lt;td&gt;Skill 1&lt;/td&gt;
              &lt;td&gt;Level 1&lt;/td&gt;
              &lt;td&gt;1 MP&lt;/td&gt;
              &lt;td&gt;This is the first skill.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Skill 2&lt;/td&gt;
              &lt;td&gt;Level 2&lt;/td&gt;
              &lt;td&gt;2 HP&lt;/td&gt;
              &lt;td&gt;This is the second skill.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Skill 3&lt;/td&gt;
              &lt;td&gt;Level 3&lt;/td&gt;
              &lt;td&gt;3 Gold&lt;/td&gt;
              &lt;td&gt;This is the third skill.&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  </code></pre>
  
  <p>Can this be done? And if so, how?</p>