Angular component for displaying JSON data in a collapsible, tree-like view. Current stable version is 3.2.1, released periodically. Key differentiators: fully Angular-native (no jQuery), supports theming via CSS variables, configurable depth and initial expansion, works with Angular 2+. Older versions (v1 for Angular 2, v2 for Angular 4-7) have different APIs and are in maintenance mode.
npm install ngx-json-viewerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimal Angular setup: import the module, bind a JSON object, and display it with expandable/collapsible nodes.
Upgrade to Angular 14+ or use ngx-json-viewer@2 for Angular 4-7.
Use [json] input instead of [data]; for Angular 2 use version 1.x.
Use --ngx-json-font-family for font-family and --ngx-json-font-size for font-size (if supported). Check source if not available.
Set [expanded]="true" if you want depth-based expansion.
Ensure you have run `npm install ngx-json-viewer` and that your tsconfig has `"module": "esnext"` and `"moduleResolution": "node"`.
Use `import { NgxJsonViewerModule } from 'ngx-json-viewer';` (correct path).Add NgxJsonViewerModule to the imports array of the module that declares the component using <ngx-json-viewer>.
No dependency data recorded yet.