I'm trying to read json input(like in https://jsonformatter.curiousconcept.com/) in html and pass it to js function to convert json to html table. I'm new to html,js, please help me read json input
<body>
<input type="text" id="jsondata" name="jsondata" />
<input type="button" onclick="CreateTableFromJSON(document.getElementById('jsondata').value)" value="Create Table From JSON" />
<p id="showData"></p>
</body>
<script>
function CreateTableFromJSON(json) {
var x = JSON.stringify(json);
var myJson = JSON.parse(x);