title: How can I add a link/href/hyperlink in JSON script
body: <p>I want to create a dynamic array/script and I need to add some link in my JSON return so that, I can create a long array which inculude dynamic list or sources with a prepared JSON file.</p>
  
  <p><img src="https://i.stack.imgur.com/5Fzj3.jpg" alt="My HTML&#39;s picture"></p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;table id="userdata" border="5"&gt;            
          &lt;th&gt;Revision  Date&lt;/th&gt;
          &lt;th&gt;Document  Name&lt;/th&gt;
          &lt;th&gt;Department &lt;/th&gt;
          &lt;th&gt;Description&lt;/th&gt;
          &lt;th&gt;Link&lt;/th&gt;     
  &lt;/table&gt;
  </code></pre>
  
  <pre class="lang-js prettyprint-override"><code>var data = {
  
      "person": [{
          "revisiondate": "21 April 2016",
          "documentname": "1658MC",
          "department": "Sales",
          "description": "Available",
          "link": "href=1658MC.pdf"
      }, {
          "revisiondate": "16 April 2016",
          "documentname": "VCX16B",
          "department": "Enginnering",
          "description": "Not Available",
          "link": "href=VCX16B.pdf"
      }, {
          "revisiondate": "15 March 2016",
          "documentname": "AB36F",
          "department": "Custumer Services",
          "description":  "Not Available",
          "link": "href=AB36F.pdf"
      }, {
          "revisiondate": "12 Agust 2016",
          "documentname": "FC25D",
          "department": "Technical Support",
          "description": "Not Available",
          "link": "href=FC25D.pdf"
      }]
  } 
  //$.getJSON("new4.json", function(data) {
  // console.log(data);
  
  //$.getJSON('new4.json', function(data) {
      $.each(data.person, function(i, person) {
          var tblRow =    "&lt;tr&gt;&lt;td&gt;" + person.revisiondate + 
                          "&lt;/td&gt;&lt;td&gt;" + person.documentname + 
                          "&lt;/td&gt;&lt;td&gt;" + person.department +
                          "&lt;/td&gt;&lt;td&gt;" + person.description + 
                          "&lt;/td&gt;&lt;td&gt;" + person.link +
                          "&lt;/td&gt;&lt;/tr&gt;"
          $(tblRow).appendTo("#userdata tbody");
      });
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/QW8Ud.jpg" alt="Clicking on marking area"></p>
  
  <p>How can I add a link to my script line such as when I click to this link this opened to my source like a PDF or HTML. I could do that in HTML but when I try to do with JSON I could not.</p>
  
  <pre><code>"&lt;/td&gt;&lt;td&gt;&lt;a  target='_blank' href='\\mustafa02\group\Manuals\Reviewed\ "+ person.documentname.split('href=')[0]+"' &gt;"+person.documentname.split('href=')[0]+"&lt;/a&gt;&lt;/td&gt;"
  </code></pre>
  
  <p>my pdfs is in the Reviewed Folder. So my folder path is shown above. <code>\\mustafa02\group\Manuals\Reviewed\</code></p>