{"id":22031377,"url":"https://github.com/devmark/ngx-jsoneditor","last_synced_at":"2025-06-12T00:34:42.676Z","repository":{"id":47257589,"uuid":"90386051","full_name":"devmark/ngx-jsoneditor","owner":"devmark","description":"a wrapper for json editor(http://jsoneditoronline.org)","archived":false,"fork":false,"pushed_at":"2021-09-06T12:20:18.000Z","size":9,"stargazers_count":8,"open_issues_count":7,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-03T01:25:41.743Z","etag":null,"topics":["angular","editor","json","json-editor"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devmark.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-05T14:44:31.000Z","updated_at":"2024-01-02T23:07:44.000Z","dependencies_parsed_at":"2022-09-01T17:23:43.285Z","dependency_job_id":null,"html_url":"https://github.com/devmark/ngx-jsoneditor","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/devmark/ngx-jsoneditor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devmark%2Fngx-jsoneditor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devmark%2Fngx-jsoneditor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devmark%2Fngx-jsoneditor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devmark%2Fngx-jsoneditor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devmark","download_url":"https://codeload.github.com/devmark/ngx-jsoneditor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devmark%2Fngx-jsoneditor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259371181,"owners_count":22847532,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","editor","json","json-editor"],"created_at":"2024-11-30T08:16:43.596Z","updated_at":"2025-06-12T00:34:42.633Z","avatar_url":"https://github.com/devmark.png","language":"TypeScript","readme":"# ngx-jsoneditor\n\n## Installation\n\n- Include JSONEditor css/js in your application :\n```\n\u003clink rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/jsoneditor/5.6.0/jsoneditor.min.css\" /\u003e\n\u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/jsoneditor/5.6.0/jsoneditor.min.js\"\u003e\u003c/script\u003e\n```\n\nTo install this library, run:\n\n```bash\n$ npm install ngx-jsoneditor --save\n```\n\n## Consuming your library\n\nOnce you have published your library to npm, you can import your library in any Angular application by running:\n\n```bash\n$ npm install ngx-jsoneditor\n```\n\nand then from your Angular `AppModule`:\n\n```typescript\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\n\nimport { AppComponent } from './app.component';\n\n// Import your library\nimport { JSONEditorModule } from 'ngx-jsoneditor';\n\n@NgModule({\n  declarations: [\n    AppComponent\n  ],\n  imports: [\n    // Specify your library as an import\n    JSONEditorModule\n  ],\n  providers: [],\n  bootstrap: [AppComponent]\n})\nexport class AppModule { }\n```\n\nOnce your library is imported, you can use its components, directives and pipes in your Angular application:\n\n```javascript\nimport { Component } from '@angular/core';\n\n@Component({\n  selector: 'sample',\n  template: `\n  \u003cjson-editor\n    [(ngModel)]=\"jsonContent\"\n    jsonModal #staticModal=\"json-modal\"\n    [config]=\"{sortObjectKeys: true}\"\n    (change)=\"onChange($event)\"\u003e\n  \u003c/json-editor\u003e\n\n    \u003cbutton (click)=\"staticModal.collapseAll()\"\u003ecollapseAll\u003c/button\u003e\n    \u003cbutton (click)=\"staticModal.expandAll()\"\u003eexpandAll\u003c/button\u003e\n  `\n})\nexport class Sample{\n  constructor(){\n    this.jsonContent = {\n        \"Array\": [1, 2, 3],\n        \"Boolean\": true,\n        \"Null\": null,\n        \"Number\": 123,\n        \"Object\": {\"a\": \"b\", \"c\": \"d\"},\n        \"String\": \"Hello World\"\n    };\n  }\n  onChange(value){\n      \n  }\n}\n```\n\n## Configuration\n* `config` : The configuration object for JSONEditor see https://github.com/josdejong/jsoneditor/blob/master/docs/api.md#configuration-options\n\n## Development\n\nTo generate all `*.js`, `*.d.ts` and `*.metadata.json` files:\n\n```bash\n$ npm run build\n```\n\nTo lint all `*.ts` files:\n\n```bash\n$ npm run lint\n```\n\n## License\n\nMIT © [DevMark](mailto:hc.devmark@gmail.com)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevmark%2Fngx-jsoneditor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevmark%2Fngx-jsoneditor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevmark%2Fngx-jsoneditor/lists"}