title: Add class to JSON file
body: <p>I have a JSON file which generates a bunch of anchors. Now I want to add a class to some of them but dont know how.</p>
  
  <p>Here is my JSON:</p>
  
  <pre><code>[
  {
      "name":"Home",
      "id":"1",
      "url":""
  },
  {
      "name":"News",
      "id":"2",
      "url":"news"
  },
  {
      "name":"About",
      "id":"3",
      "url":"about"
  },
  {
      "name":"Contact",
      "id":"4",
      "url":"contact"
  }
   ]
  </code></pre>
  
  <p>so is there any way to do this? Should I fetch the id and add the class with Jquery?</p>
  
  <p>[UPDATE]</p>
  
  <p>I was thinking in the direction of:</p>
  
  <pre><code>    {
      "name":"Contact",
      "id":"4",
      "url":"contact",
      "class" : "some-class"
  }
  </code></pre>
  
  <p>inserting the class this way, but that apparently doesnt work...</p>
  
  <p>the code which generates the anchors:</p>
  
  <pre><code>{{#each mainmenu}}
   &lt;li&gt;
      &lt;a class="" href="{{this.url}}"&gt;&lt;h2&gt;{{this.name}}&lt;/h2&gt;&lt;/a&gt;
   &lt;/li&gt;
  {{/each}}
  </code></pre>