JSFiddle - React, Tailwind, and code Playground

by wpwelch

HTML

<div id="jsonString"></div>
<br />
<div id="jsObject"></div>

JavaScript

var test = { "row0": {"year": "2001", "discipline": "some discipline", "theme": "some theme", "pair": "some pair"} , "row1": {"year": "2001", "discipline": "some discipline", "theme": "some theme", "pair": "some pair"} };
strEcho = JSON.stringify(test);
objRef = test.row0.year;
$("#jsonString").html(strEcho);
$("#jsObject").html(objRef);