{"library":"json-formatter-js","type":"library","category":null,"description":"Renders JSON objects as interactive, collapsible HTML trees. Current version 2.5.23. stable, infrequent releases. Key differentiator: lightweight, zero-dependency core library (not a web component), with hover preview, animation, theming (dark mode), and configurable folding depth. Suitable for browser and Node.js (DOM required).","language":"javascript","status":"active","version":"2.5.23","tags":["javascript","json","typescript"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install json-formatter-js","imports":["import JSONFormatter from 'json-formatter-js';","const formatter = new JSONFormatter(json, open, config);","formatter.render() returns an HTMLElement node; appendChild() to document.","formatter.openAtDepth(depth);","new JSONFormatter(obj, 0);"]},{"cmd":"yarn add json-formatter-js","imports":[]},{"cmd":"pnpm add json-formatter-js","imports":[]}],"homepage":"https://github.com/mohsen1/json-formatter-js#readme","github":"https://github.com/mohsen1/json-formatter-js","docs":null,"changelog":null,"pypi":null,"npm":"json-formatter-js","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}