JSFiddle - React, Tailwind, and code Playground
HTML
<textarea id="txtconfig"></textarea>
<button type="button" id="btnTest">Blur</button>
JavaScript
var configString = document.getElementById("txtconfig").value;
document.getElementById("btnTest").onclick = test;
function test()
{
alert(JSON.parse(document.getElementById("txtconfig").value).inputType);
}