An interactive JSON view component for Angular.
npm install --save nxt-json-view
import { JsonViewModule } from 'nxt-json-view'
@NgModule({
...
imports: [
...
JsonViewModule
]
})
data = {
"name": "nxt-json-view",
"url": "https://github.com/Liquid-JS/nxt-components/tree/master/packages/json-view",
"string": "github",
"number": 88,
"boolean": true,
"object": {
"obj1": "obj1",
"obj2": "obj2",
"object": {
"obj11": "obj11",
"obj22": "obj22"
},
"emptyArray": []
},
"array": [
1,
2,
3
],
"date": new Date(),
"null": null
}
<nxt-json-view [data]="data"></nxt-json-view>