title: How to add click event for button in module of jsontohtml node-js (npm)
body: <p>I am trying to convert JSON to HTML. I am able to create the HTML element and ID attribute. However I can not create the onclick events. I am using the <code>npm json2htmll.js</code> npm module.</p>
  <pre><code>let jsontoHtml: {
  
                  &quot;&lt;&gt;&quot;: &quot;div&quot;,
                  &quot;html&quot;: [
                       {
                          &quot;&lt;&gt;&quot;: &quot;button&quot;,
                          &quot;id&quot;:&quot;button1&quot;,
                          &quot;onclick&quot;: &quot;ButtonClicked()&quot;,
                          &quot;text&quot;: &quot;Click&quot;
                      }
                  ]
              };
  
  let html = json2html.transform({}, jsontoHtml);
  </code></pre>
  <p>Current output:</p>
  <pre><code>&lt;/button id=&quot;button1&quot;&gt;click&lt;/button&gt;
  </code></pre>
  <p>Expected output:</p>
  <pre><code>&lt;button id=&quot;button1&quot; onclick=&quot;buttonClicked()&quot;&gt;Click&lt;/button&gt;
  </code></pre>
  <p>Do you know how I can achieve the expected output?</p>