# ngw-json-view

> A JSON View component for Angular 8+, is forked from https://github.com/twp0217/ngx-json-view

Latest version **3.0.6** (published 2019-06-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install ngw-json-view
pnpm add ngw-json-view
yarn add ngw-json-view
bun add ngw-json-view
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.6 |
| Published | 2019-06-22 |
| First published | 2019-06-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 308.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Author | agosys |
| Maintainers | agosys |
| Keywords | angular, angular2, angular4, angular5, ng, ng2, json-view, ng-json-view |

## Links

- npm: https://www.npmjs.com/package/ngw-json-view
- Repository: https://github.com/killzoner/ng-json-view
- Homepage: https://github.com/waguirre/ngx-json-view#readme
- Issues: https://github.com/waguirre/ngx-json-view/issues
- npm.io page: https://npm.io/package/ngw-json-view

## Dependencies (1)

- [tsickle](https://npm.io/package/tsickle.md) ^0.35.0

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 3.0.6 (latest) — 2019-06-22
- 3.0.5 — 2019-06-22
- 3.0.4 — 2019-06-22
- 3.0.2 — 2019-06-22
- 3.0.3 — 2019-06-22
- 3.0.1 — 2019-06-12
- 3.0.0 — 2019-06-12

## README

[![Build Status](https://travis-ci.org/killzoner/ng-json-view.svg?branch=master)](https://travis-ci.org/killzoner/ng-json-view)

# ng-json-view
A JSON View component for Angular 6+ (an angular 6+ based JSON display component)

## installation

```
npm install ng-json-view --save
```

## use
- Install the dependency package：`ng-json-view`

```
npm install ng-json-view --save
```

- Import in module `NgxJsonViewModule`

```
import { NgxJsonViewModule } from 'ng-json-view';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpModule,
    NgxJsonViewModule
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
```

- Prepare JSON data

```
data = {
  "name": "twp0217",
  "url": "https://github.com/twp0217",
  "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
};
```

- Use on template page

```
<ngx-json-view [data]="data"></ngx-json-view>
```

# Document
- `data` - `Object` - Data
- `levelOpen` - `number` - Initialize the number of layers to be expanded (initial value: 0)

# stand by

- If the project is helpful to you, please click on the star,Thank you
- If you have ideas, questions, and bugs about the project, welcome to discuss.

---
_Source: https://npm.io/package/ngw-json-view · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
