Minimal JSON Data Formatter – JSONViewer
Load the following JS and CSS files into your html page.
<script src="json-viewer.js"></script> <link rel="stylesheet" href="json-viewer.css">
Create an element to place the formatted JSON objects.
<div id="json"></div>
Create a new JSONViewer instance.
var jsonViewer = new JSONViewer();
Append the instance to the DIV element you just created.
document.querySelector("#json").appendChild(jsonViewer.getContainer()); Format and beautify your JSON data using the showJSON() method. Available parameters:
jsonViewer.showJSON(json, maxLvl, colAt);
04/16/2020
02/29/2020
03/19/2019
The post Minimal JSON Data Formatter – JSONViewer appeared first on CSS Script.
SUNNYVALE, Calif., Apr. 15, 2026 – NTT Research, Inc., a division of NTT (TYO:9432), today announced the launch…
ProdCo.xyz – Network Solutions customer – (United States) Creative agencies use .xyz domains to build…
Simplicity is not the goal. It is the by-product of a good idea and modest…
A newly uncovered attack campaign is tricking users into installing remote access software on their…
Cybersecurity researchers have uncovered a large and organized network of malicious infrastructure quietly running inside…
A newly identified threat operation is exploiting one of the most widely used content discovery…
This website uses cookies.