https://stackoverflow.com/questions/957537/how-can-i-display-a-javascript-object
str = JSON.stringify(obj); str = JSON.stringify(obj, null, 4); // (Optional) beautiful indented output. console.log(str); // Logs output to dev tools console. alert(str); // Displays output using window.alert()