JSFiddle - React, Tailwind, and code Playground
by skram
HTML
<script src="https://raw.github.com/douglascrockford/JSON-js/master/json2.js"></script>
JavaScript
var simpleArray = []; //note that it is defined as Array Object
alert(typeof simpleArray); // returns object -> Array Object
simpleArray ['test1'] = 'test 1';
simpleArray ['test2'] = 'test 2';
alert(JSON.stringify(simpleArray));